Home All Groups Group Topic Archive Search About

get all eligible entry points of a font file

Author
22 Mar 2006 8:41 PM
Gary
Hi, there,

I am wondering if we can find all showable characters for a certain font
file so that we can display all eligible characers for it. For example, is
there a place to store the information that a~z are fine for Arial, however,
CJK characters are not.

In short, can I find all Unicode or entry points for a given font?

Thanks lot in advance,

Gary

Author
23 Mar 2006 5:35 PM
Mike D Sutton
> I am wondering if we can find all showable characters for a certain font
> file so that we can display all eligible characers for it. For example, is
> there a place to store the information that a~z are fine for Arial,
> however,
> CJK characters are not.
>
> In short, can I find all Unicode or entry points for a given font?

Have a look at the GetFontUnicodeRanges() or GetGlyphIndices() API calls:
http://msdn.microsoft.com/library/en-us/gdi/fontext_2alv.asp
http://msdn.microsoft.com/library/en-us/gdi/fontext_4svn.asp
Hope this helps,

    Mike


- Microsoft Visual Basic MVP -
E-Mail: ED***@mvps.org
WWW: Http://EDais.mvps.org/