An interesting question indeed ! I don't think it could be as generic as you want, given that any font developer is free to use any convention for their fonts.
You migh wish to walk arround all fonts and check CharWidth and CharHeight to find the most relevant. In this case, how do we know the total number of fonts - if you check all id-s in the range it will take ages ?! So far questions are more than answers. M. -----Original Message----- From: Gert-Jan Vons [mailto:[EMAIL PROTECTED]] Sent: Friday, 7 December 2001 7:38 AM To: Palm Developer Forum Subject: How to FntGetBoldFont(fontId) ? given a fontID, is there a way to find the equivalent bold font ID? I'm displaying text in a user-selected font, and want to display some parts in bold. It isn't too difficult on palms with only the std, bold, large, and largeBold fonts, but on the Handera there are already 8 fonts, and there are probably even more out there (Sony's hi-res fonts, Japanese fonts, ...) (I know not all fonts have a bold equivalent, but that's not the issue here) Gert-Jan ----- "The more crap you put up with, the more crap you are going to get." - Dilbert -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
