Is there a way to know if selected font is a DBCS font.
GetFontLanguageInfo seem promising but did not work (tested on XP).
KetilO
GetFontLanguageInfo seem promising but did not work (tested on XP).
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
...
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
...
Hi beaster
Not unicode.
I only need to know if the font selected into a DC is a DBCS font.
KetilO
Not unicode.
I only need to know if the font selected into a DC is a DBCS font.
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. :) )
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. :) )
Hi Starless
Thats the way I am doing it now.
There must be a better way instead of just guessing.
KetilO
Thats the way I am doing it now.
There must be a better way instead of just guessing.
KetilO