Keith Packard wrote:> This code fragment will extract the unicode coverage information for the > >specified font pattern; you can then use the various FcCharSet functions >to examine that value. > > >Thanks for the quick response. I guess you are implying that I do need to write my own utility, so I guess it''s time to start learning the API. -- David
Around 12 o''clock on Sep 21, David Shochat wrote:> Things I want to know: > > 1. Is it a Unicode font? > 2. What code points does it support?Fontconfig has Unicode coverage information for each font; if the Unicode coverage is non-empty, then the font has some kind of mapping which can be used to map Unicode values to glyphs. Note that fontconfig supports a couple of non-Unicode mappings (Apple Roman and Symbol) so that older fonts without Unicode mapping tables can still be used by applications that use only Unicode values. FcCharSet *cs; if (FcPatternGetCharSet (pattern, FC_CHARSET, &cs) != FcResultMatch) cs = 0; if (!cs) return; This code fragment will extract the unicode coverage information for the specified font pattern; you can then use the various FcCharSet functions to examine that value. -keith
Is there a utility that can be used to find out things about a given font that is installed on my system? Things I want to know: 1. Is it a Unicode font? 2. What code points does it support? I have RedHat Linux 9 and fontconfig-2.1-9. The documentation I found on the fontconfig web site says that fontconfig allows you to find out how well a given installed font supports a given language, but how? Do I need to write my own utility against the fontconfig library to do this, or does such a utility already exist? I have something called gnome-font-viewer which I think is what allows me to see what fonts look like under nautilus. That is very nice, but there is no way I have figured out to ask the 2 questions above using this. Thanks. -- David