Red Hat Bugzilla – Bug 242243
DejaVu fonts in firefox/thunderbird
Last modified: 2018-04-11 11:57:34 EDT
Description of problem:
I just upgraded from FC6 to F7. I was using the mozilla download of firefox &
thunderbird on FC6 but am using the package versions on F7.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Open the font preferences dialog
2. choose one of the font option menus
"DejaVu Sans" is listed 6 times and no "DejaVu Sans Condensed", "DejaVu Sans
ExtraLight", etc. Similar results for "DejaVu Serif"
I would expect to see a similar font set as in the gnome font config tool
Occurs in Firefox and Thunderbird. Downloaded version from mozilla website
exhibits same behavior on F7 (worked great on FC6). I tried manually setting
"DejaVu Sans Condensed" via about:config but no avail.
If it happens in the upstream version, we should send the bug to mozilla.org.
Looks like the problem is that the widget is not wide enough/doesn't expand to
fit its content.
Created attachment 156026 [details]
Font selection dialog showing incorrect DejaVu fonts
There is plenty of space in the widget to display the whole font name. As I
said, the same 188.8.131.52 binary worked great on FC6. I suspect that it may an
issue interacting with a shared library that changed between FC6 and F7.
It could just be that I don't have any longer named fonts, them. Behdad, any
idea why this might be happening? Did the names we report change or something?
In the Gnome Systen->Look & Feel->Font tool, the font selection tool has 2 lists
labeled "Family" and "Style". The Family "DejaVu Sans" has styles ExtraLight,
Condensed, Book, Condensed Oblique, Condensed Bold, Bold, Condensed Bold
Oblique, and Bold Oblique. I checked on FC6 and the package
dejavu-fonts-experimental includes a font family name "DejaVu Sans Condensed"
with styled Condensed, Oblique, Bold, and Bold Oblique.
So it looks like the font names were cleaned up somewhat in F7 and Firefox only
considers the family not the the style.
(In reply to comment #4)
> It could just be that I don't have any longer named fonts, them. Behdad, any
> idea why this might be happening? Did the names we report change or something?
fontconfig's behavior was changed to use the "preferred family name" field of
the font files, which is why you get DejaVu Sans for them all, which makes
sense. However, it relies on apps to be able to handle arbitrary font styles,
something that neither pango nor firefox seems to be prepared for at this time. :(
Is this something that should happen in firefox or pango?
As a side note, I'm noticing this in Debian Iceweasel also. I've raised a bug
for an additional issue regarding condensed fonts that I think is associated.
If I set the application font in the GNOME font panel to DejaVu Sans Condensed,
each application takes DejaVu Sans Condensed, except Iceweasel - which uses
DejaVu Sans Regular. I've manually unpacked and installed the F7 RPM to see if
it exhibits the same behaviour, and it does.
I think it's related to this issue.
The debian bug is http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=410247, if
you are interested!
(In reply to comment #7)
> Is this something that should happen in firefox or pango?
firefox does its own font enumeration (even in the Pango backend).
I'll see if I can make it use pango, but I've promised to do other stuff too...
At this point, we're going to only be taking security fixes and major stability
fixes into this release of Fedora. However, we still want to ensure the bug is
fixed in the next version. We'd appreciate if you could test Firefox 3,
available at http://www.mozilla.com/en-US/firefox/all-beta.html or now shipping
as the default in Fedora rawhide and provide feedback as to whether it still
exists so we can file a ticket upstream to try to fix it in Firefox 3 before it
I just installed firefox 3 beta 3 from the mozilla site. When under the font
selection dialog, it still does not recognized the styles such as Condensed. On
a good note, it only lists each family once.
OK, so currently the problem is that Firefox doesn’t show other versions of the
font from the same family (e.g., Dejavu Condensed and shows only Dejavu once),
We filed this bug into the upstream database
(https://bugzilla.mozilla.org/show_bug.cgi?id=419001) and believe that it is
more appropriate to let it be resolved upstream.
Red Hat will continue to track the issue in the centralized upstream bug
tracker, and will review any bug fixes that become available for consideration
in future updates.
Thank you for the bug report.