tags:

views:

28

answers:

1

Given an HFONT, how do I tell if it's a symbol font? A pdf library I'm using needs to treat symbol fonts differently, so I need a way to programatically tell if any given font is a symbol font or not.

+4  A: 

Use GetObject to get the font's properties to a LOGFONT structure. Check the lfCharSet member; if it's SYMBOL_CHARSET, you have a symbol font.

Mark Ransom
Dayum! I was just reading the LOGFONT page at http://msdn.microsoft.com/en-us/library/dd145037%28v=VS.85%29.aspx and you beat me to the answer...
Adriano Varoli Piazza