Hi, In de-jure standard, OS/2 table has similar info in UnicodeRange entries (see tttables.h) about the per-block availability. However, in real world, they are not so reliable. Per-codepoint checking is required if you want reliable info.
I don't know whether Win32 or C# provide some useful API to do that (I'm not saying as there would not be - I just say I don't know). If you want to self-standing tool doing such, please check fontconfig source. I'm not recommending to use fontconfig in your software project (it might be overkill library for Windows application), but you will find how it checks the glyph availability. It might be one of the most popular implementation crawling all codepoints and glyph availability. Regards, mpsuzuki DK wrote: > Is there a way using FreeType on Windows to determine: > > 1. Which Unicode blocks (as per http://unicode.org/ V8.0.0) the font > supports? > > 2. In the blocks it supports, how many of the characters are > supported? > > > > For example, TrueType font Symbola all 48 characters of Unicode block > "Miscellaneous Mathematical Symbols-A" (U+27C0 - U+27EF), all 116 characters > in the Unicode block "Alchemical symbols" (U+1F700 - U+1F77F) but only 4 > characters of Unicode block "Latin Extended-E" (U+AB30 - U+AB65). > > > > Note: Windows works with surrogates and not the Unicode integer value for > characters above 0xFFFF (i.e. not in the BMP). > > > > I assume one has to process the cmap table but this does not seem as easy as > I had hoped. It doesn't help that the cmap seems to be big endian and > Windows is little endian! > > > > Many thanks. > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Freetype mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/freetype _______________________________________________ Freetype mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/freetype
