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

bugzilla at redhat.com bugzilla at redhat.com
Mon Nov 22 23:21:58 UTC 2010

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


--- Comment #12 from Omair Majid <omajid at redhat.com> 2010-11-22 18:21:57 EST ---
(In reply to comment #11)
> 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

Ah, thanks for the explanation. I dug into the OpenJDK source code to find that
Java picks one name for every font. The name is either the the last english
name in the font file or (if there is no english name) the first non-english
name. So Java should not have problems handing the actual fonts, but it may not
associate the right localized name with the font (based on your localization

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