[Bug 24613] fc-query can't query face 0

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Oct 21 22:53:42 UTC 2009


http://bugs.freedesktop.org/show_bug.cgi?id=24613


Behdad Esfahbod <freedesktop at behdad.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |freedesktop at behdad.org




--- Comment #3 from Behdad Esfahbod <freedesktop at behdad.org>  2009-10-21 15:53:40 PST ---
Reading the comment before that block of code suggests that the code is correct
in its current form:

    /*
     * Skip over PCF fonts that have no encoded characters; they're
     * usually just Unicode fonts transcoded to some legacy encoding
     * FT forces us to approximate whether a font is a PCF font
     * or not by whether it has any BDF properties.  Try PIXEL_SIZE;
     * I don't know how to get a list of BDF properties on the font. -PL
     */
    if (FcCharSetCount (cs) == 0)
    {
#if HAVE_FT_GET_BDF_PROPERTY
        if(FT_Get_BDF_Property(face, "PIXEL_SIZE", &prop) == 0)
            goto bail2;
#endif
    }


Indeed, in the pattern you got after modifying that line, you see that charset
is empty, that is, fontconfig could not recognize any character in the font and
hence the face is useless.  That's why fontconfig skips it.  Sounds like
NOTABUG to me.  What kind of font is this?


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.




More information about the Fedora-fonts-bugs-list mailing list