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

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Oct 22 06:37:31 UTC 2009


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





--- Comment #4 from Akira TAGOH <akira at tagoh.org>  2009-10-21 23:37:27 PST ---
(In reply to comment #3)
> 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?

It's a Japanese bitmap font. so fontconfig is just checking to skip the broken
BDF/PCF fonts highly likely not having any charset detected? I see - I don't
still see there are any useful cases not skipping non-BDF/PCF fonts that has no
charsets though.

However the assumption as described at that comment isn't necessarily true. 
Since it was available before we are moving to Unicode, most BDF/PCF fonts
available in the world should be encoded by "none". but just put glyphs with
the glyph IDs for the charset. in fact, it does in this case.

FreeType is (internally) capable to add any CMaps that is used to look up the
glyph ID from the character code though, no exported FT_CMap structure. if
adding the own CMap to transcode Unicode to the charset, it may works as
expected without modifying the application code.  but I guess fontconfig won't
support such fonts so far, because fontconfig and other rendering library
focuses on Unicode only and using the internal APIs doesn't make sense?


-- 
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