1 // ======================================================================
5 // This code was retrieved from a public Microsoft web page at
6 // http://support.microsoft.com/default.aspx?scid=kb;EN-US;241020
8 // ======================================================================
10 #ifndef FONT_GLYPH_CODE_H
11 #define FONT_GLYPH_CODE_H
13 //Given a device context that has a font selected, and a unicode character,
14 // return the Glyph Index into the font. Returns 0 if that font does not
15 // contain the given character.
16 USHORT
GetTTUnicodeGlyphIndex(HDC hdc
, USHORT ch
);
18 //Given a device context that has a font selected, return the number of unicode
19 // glyphs contained in the font.
20 USHORT
GetTTUnicodeCharCount(HDC hdc
);