Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does font contain alpha characters

Status
Not open for further replies.

AndyWatt

Programmer
Oct 24, 2001
1,288
GB
Hi Chaps,

I'm trying to write a "Hello World" type routine using random fonts, and I want to make sure the text printed is ledgible.

Does anyone know if it is possible to determine whether a given font contains a "normal" character set (e.g. Courier New, Tahoma, Arial) or a "non-standard" character set (e.g. Windings, Marlett, Outlook, etc.)?


Andy
"Logic is invincible because in order to combat logic it is necessary to use logic." -- Pierre Boutroux
"Why does my program keep showing error messages every time something goes wrong?"
 
Hi,

VB won't give you this info, you have to setup a callback with the EnumFontFamilies api and check the lfPitchAndFamily item of the LogFont structure to know if the font is decorative, roman, script, ...

If I remember well the VBThunder site has an example of using the CallBack....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top