Steve Mann <[EMAIL PROTECTED]> writes:

> >How do I draw two parts of a field in different fonts?
> 
> If you're willing to manage the two parts of the field individually, as
> two separate strings or character sequence, use the Font manager
> functions. There's no way to do it automatically.

A single field resource cannot have multiple fonts in it. The field
struct has two entries: a font ID and the text handle. Thus, there's no
way to draw part of the field in one font and part in another font. You
would have to split the field into two separate fields, and then assign
a different font ID to each field. Alternately, you could implement the
field as a gadget, and draw the separate parts of the text yourself. As
mentioned above, FntSetFont is the way to change fonts before drawing
the next piece of text.

-- 
Dave Carrigan ([EMAIL PROTECTED])            | Yow! LIFE is a never-ending
UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | INFORMERCIAL!
Seattle, WA, USA                            | 
http://www.rudedog.org/                     | 

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to