[Bug 525870] The Java plugin does not report available fonts accurately

bugzilla at redhat.com bugzilla at redhat.com
Fri Nov 19 18:53:59 UTC 2010


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=525870

--- Comment #11 from Nicolas Mailhot <nicolas.mailhot at laposte.net> 2010-11-19 13:53:58 EST ---
fc-list :family is a summary. To really see what's in a font file you need to
use fc-query

$ fc-query /usr/share/fonts/sazanami/gothic/sazanami-gothic.ttf
Pattern has 20 elts (size 32)
        family: "Sazanami Gothic"(s) "さざなみゴシック"(s)
        familylang: "ar"(s) "ja"(s)

So sazanami does not have an English name, it has an Arabic and Japanese name

$ fc-query /usr/share/fonts/gfs-theokritos/GFSTheokritos.otf
Pattern has 19 elts (size 32)
        family: "GFS Theokritos"(s)
        familylang: "el"(s)

And this one only declares a Greek name

It's pure luck than in both cases the non-English name was filled with an
English string, you can't rely on it for a general-purpose java engine

Also when you filter the names declared by fonts, that means all the CSS-y
dialects people use nowadays can fail (because they can reference one of the
names you've filtered out).

IIRC there have been efforts to expose the Postscript font name in fontconfig
recently in addition to the TrueType one, because some pdf generators are fond
of using this font name in their font references, so software that filters
those names out can not display the resulting files correctly.

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the fonts-bugs mailing list