Closed Bug 1378828 Opened 8 years ago Closed 8 years ago

Stale fontconfig status results in broken font rendering

Categories

(Core :: Graphics: Text, defect, P3)

defect

Tracking

()

RESOLVED INVALID

People

(Reporter: gerard-majax, Unassigned)

Details

(Keywords: nightly-community, Whiteboard: [gfx-noted])

Attachments

(3 files)

STR: 1. Load a Wikipedia page (e.g., https://fr.wikipedia.org/wiki/Haswell) Expected: I can see main titles, like « Principales caractéristiques » Actual: I don't. Source code shows that the <h2><span> is there. Some other people don't have that problem. Very old builds (under mozregression) exhibits the same behavior).
Jonathan, it might be something similar to bug 1355770, I attached a view of the Font panel in the devtools inspector.
Flags: needinfo?(jfkthame)
Changing the font-family from 'Linux Libertine' to something that does not include this name works around the issue.
Attached image without linux libertine
The best mozregression could get me was: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=62d9b117c688&tochange=0f1d42a6745a Getting further would not be possible, because of a lot of TaskCluster failured being reported.
Priority: -- → P3
Whiteboard: [gfx-noted]
(In reply to Alexandre LISSY :gerard-majax from comment #4) > The best mozregression could get me was: > https://hg.mozilla.org/mozilla-central/ > pushloghtml?fromchange=62d9b117c688&tochange=0f1d42a6745a This range includes bug 1056479, which seems like a very plausible culprit. I suspect there may be some kind of issue with @font-face loading in the gfxFcPlatformFontList backend. Lee, this may not be exactly the part of the font code that you've worked on lately, but is there a chance you could try to reproduce this and debug what's going on?
Flags: needinfo?(jfkthame) → needinfo?(lsalzman)
For repro steps, it's 100% for me on ubuntu 17.04. It seems not to happen elsewhere. Not related to my profile as well.
(In reply to Alexandre LISSY :gerard-majax from comment #6) > For repro steps, it's 100% for me on ubuntu 17.04. It seems not to happen > elsewhere. Not related to my profile as well. Alexandre, can you tar up your /etc/fonts directory (and please use the --dereference option so that symlinks are not included in the archive), and email it to me at lsalzman@mozilla.com? This will possibly enable me to reproduce the issue, which is necessary to investigate what's going on.
Flags: needinfo?(lsalzman)
Flags: needinfo?(lissyx+mozillians)
Also, does the problem still occur for you when using nightly? I am not able to reproduce here if I just install the Linux Libertine fonts package on Debian.
(In reply to Lee Salzman [:lsalzman] from comment #8) > Also, does the problem still occur for you when using nightly? I am not able > to reproduce here if I just install the Linux Libertine fonts package on > Debian. Yes, this is 100% repro with nightly. I don't reproduce either on my Debian desktop :)
Flags: needinfo?(lissyx+mozillians)
FYI, the font seems to be rendering in LibreOffice though.
So, my bad. Lee asked me to perform some debug: > $ fc-match "Linux Libertine" > LinLibertine_RB.otf.dpkg-new: "Linux Libertine O" "Bold" And adding -v would output: > [...] > file: "/usr/share/fonts/opentype/linux-libertine/LinLibertine_RB.otf.dpkg-new"(w) The ".dpkg-new" part tricked me into thinking of something broken on my system. Indeed, after issuing: > sudo apt reinstall fonts-linuxlibertine Running again fc-match: > $ fc-match "Linux Libertine" > LinLibertine_R.otf: "Linux Libertine O" "Regular" So my guess is that at some point, during an upgrade, something went bad, and this tricked some font cache. The fact that it worked in LibreOffice would suggest there is still a bug in our code, though, because of my reinstall, I cannot reproduce that issue anymore. Hence closing as INVALID.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
Summary: Missing main titles on Wikipedia → Stale fontconfig status results in broken font rendering
This Debian bug report might be related: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=835142
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: