Is there anything in fontconfig''s library routines that might help me check whether a font provides a glyph that matches a given Unicode code point? Or am I barking the wrong tree and should look elsewhere? Thanks, Gen-Paul.
Nicolas Mailhot
2010-Jan-29 09:17 UTC
[Fontconfig] Check for the existence of a glyph in a font
Le Jeu 28 janvier 2010 23:12, Gen-Paul a ?crit :> > Is there anything in fontconfig''s library routines that might help me check > whether a font provides a glyph that matches a given Unicode code point?fc-query/fc-scan will list missing codepoints in a font file in debug mode, so I suppose the routines exists within fontconfig. -- Nicolas Mailhot
Behdad Esfahbod
2010-Jan-29 17:22 UTC
[Fontconfig] Check for the existence of a glyph in a font
On 01/28/2010 05:12 PM, Gen-Paul wrote:> Is there anything in fontconfig''s library routines that might help me check > whether a font provides a glyph that matches a given Unicode code point?Sure, FcFreeTypeQuery() the font and then FcPatternGetCharSet() the FC_CHARSET element and then FcCharSetHasChar() it. behdad> Or am I barking the wrong tree and should look elsewhere? > > Thanks, > > Gen-Paul
Hi, Gen-Paul, For what it is worth, I created a command-line utility that will tell you precisely about font coverage: Fontaine http://unifont.org/fontaine/ svn co https://fontaine.svn.sourceforge.net/svnroot/fontaine Sample usage: fontaine --text --hide-fragmentary --show-missing some_font.ttf Best - Ed On Thu, Jan 28, 2010 at 5:12 PM, Gen-Paul <pgenpaul at gmail.com> wrote:> Is there anything in fontconfig''s library routines that might help me check > whether a font provides a glyph that matches a given Unicode code point? > > Or am I barking the wrong tree and should look elsewhere? > > Thanks, > > Gen-Paul. > > _______________________________________________ > Fontconfig mailing list > Fontconfig at lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/fontconfig >
Chris Jones
2010-Jan-30 03:50 UTC
[Fontconfig] Check for the existence of a glyph in a font
On Fri, Jan 29, 2010 at 03:37:56PM EST, Ed Trager wrote:> Hi, Gen-Paul, > > For what it is worth, I created a command-line utility that will tell > you precisely about font coverage: > > Fontaine > http://unifont.org/fontaine/ > svn co https://fontaine.svn.sourceforge.net/svnroot/fontaine > > Sample usage: > > fontaine --text --hide-fragmentary --show-missing some_font.ttf > > Best - EdThis does everything I''ve always wanted and then some...!! CJ
Ed Trager wrote:> Hi, Gen-Paul, > > For what it is worth, I created a command-line utility that will tell > you precisely about font coverage: > > Fontaine > http://unifont.org/fontaine/ > svn co https://fontaine.svn.sourceforge.net/svnroot/fontaine > > Sample usage: > > fontaine --text --hide-fragmentary --show-missing some_font.ttf > >Last thing I expected. I was planning to writing a couple of quick and dirty scripts/programs to analyze the contents of font files, and well.. looks like it''s my lucky day. Especially since I have access to the source and will be able to modify it should I needs arise that are not covered. I hope this great utility gets a lot of exposure and will tickle the fancy of the debian developers so it becomes available via their repositories. Thank you very much for taking the time to reply to my post. Gen-Paul.
Nicolas Mailhot
2010-Jan-31 14:12 UTC
[Fontconfig] Check for the existence of a glyph in a font
Le samedi 30 janvier 2010 ? 19:01 -0500, Gen-Paul a ?crit :> > > Last thing I expected. > > I was planning to writing a couple of quick and dirty scripts/programs > to analyze > the contents of font files, and well.. looks like it''s my lucky day.If you want to perform some form of QA on font files we''ve written a test suite fedora-side (a bit rpm-oriented, but should be generalizable) http://git.fedorahosted.org/git/fontpackages.git?p=fontpackages.git;a=history;f=bin/repo-font-audit -- Nicolas Mailhot -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20100131/2618a29a/attachment.pgp