Is there a way to know if selected font is a DBCS font.
GetFontLanguageInfo seem promising but did not work (tested on XP).

KetilO
Posted on 2003-02-05 03:22:07 by KetilO
what do you mean with a DBCS font?
The truetype font file format contains always unicode glyphs.
There are normally mapping tables, that tell which characters
from Windows and Mac charactersets are contained in the file.

At WinNT/2k you can get this table with GetFontUnicodeRanges,
otherwise you can read the raw TTF table with GetFontData and
need to parse the ranges yourself.

The unicode ranges tell, which unicode character glyphs are in font:
0000-00FF
0180-01FF
4020-4080
...
Posted on 2003-02-05 03:59:16 by beaster
Hi beaster

Not unicode.
I only need to know if the font selected into a DC is a DBCS font.

KetilO
Posted on 2003-02-05 04:14:24 by KetilO
GetTextCharset() may be of help.
Compare the return value to known DBCS character sets - e.g. Chinese, Japanese, and Korean. (Any other DBCS charset? The acronym CJK is stuck in my brain. :) )
Posted on 2003-02-05 04:51:59 by Starless
Hi Starless

Thats the way I am doing it now.
There must be a better way instead of just guessing.

KetilO
Posted on 2003-02-05 05:33:05 by KetilO