Closed
Bug 1423894
Opened 7 years ago
Closed 7 years ago
Some monospaced text fails to render
Categories
(Core :: Graphics: WebRender, defect, P3)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox57 | --- | unaffected |
firefox58 | --- | unaffected |
firefox59 | --- | disabled |
People
(Reporter: samth, Unassigned)
References
(Blocks 1 open bug, )
Details
(Keywords: regression, Whiteboard: [wr-mvp] [triage])
Attachments
(2 files)
Several web pages which display monospaced text (but not all) fail to render the text at all. This happens on
https://www.snoyman.com/blog/2017/12/stack-and-nightly-breakage (all the code text)
and on
http://drdr.racket-lang.org/ (all the text in all but the left-most column).
This is on 59.0a1 (2017-12-05) (64-bit) on Ubuntu Linux, and only appeared with the 12/5 Nightly.
Reporter | ||
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
This looks typical of some sandbox-related font issues we've seen, but they are supposed to have been fixed. If you go to about:config and set security.sandbox.content.level down to 2, and then restart the browser, does that make any difference?
Flags: needinfo?(samth)
Reporter | ||
Comment 3•7 years ago
|
||
That did not fix it. For good measure I tried 0 as well, but that didn't change anything either.
Flags: needinfo?(samth)
Comment 4•7 years ago
|
||
OK, thanks -- in a way it's reassuring, actually, to know it wasn't a recurrence of that problem.
What font is (supposedly) being used for the elements that fail to render, if you check with the DevTools inspector? (Look at its Fonts panel to see what is reported as actually used, as opposed to what's specified in the CSS font-family property.)
Flags: needinfo?(samth)
Reporter | ||
Comment 5•7 years ago
|
||
The fonts panel says:
Courier New system
Used as: "Courier New"
The CSS is:
font-family: Courier New, Courier, monospace;
That's for drdr.racket-lang.org.
Flags: needinfo?(samth)
Comment 6•7 years ago
|
||
OK, what kind of font is the Courier New you have installed? Running
fc-match -v "Courier New"
in a terminal should dump a whole bunch of details about it.
Flags: needinfo?(samth)
Reporter | ||
Comment 7•7 years ago
|
||
Here's the output: https://gist.github.com/3c127880e4239b167deffe77661a51c0
Flags: needinfo?(samth)
Reporter | ||
Comment 8•7 years ago
|
||
On a different machine (also Ubuntu) the same build does not have the problem, here's the `fc-match` output there:
https://gist.github.com/4d945ecae9b6a5c4df5e3bb3802a0995
The diff is (courier-new has the bug):
[samth@hermes:/tmp plt] diff -u courier.out courier-new.out
--- courier.out 2017-12-07 14:48:36.605693895 -0500
+++ courier-new.out 2017-12-07 14:49:12.577737390 -0500
@@ -1,4 +1,4 @@
-Pattern has 36 elts (size 48)
+Pattern has 38 elts (size 48)
family: "Courier New"(s)
familylang: "en"(s)
style: "Regular"(s) "Normal"(s) "obyčejné"(s) "Standard"(s) "Κανονικά"(s) "Normaali"(s) "Normál"(s) "Normale"(s) "Standaard"(s) "Normalny"(s) "Обычный"(s) "Normálne"(s) "Navadno"(s) "thường"(s) "Arrunta"(s)
@@ -12,8 +12,9 @@
pixelsize: 12.5(f)(s)
spacing: 100(i)(w)
foundry: "Mono"(w)
+ antialias: True(w)
hintstyle: 1(i)(w)
- hinting: True(s)
+ hinting: True(w)
verticallayout: False(s)
autohint: False(s)
globaladvance: True(s)
@@ -52,6 +53,7 @@
fontformat: "TrueType"(w)
embeddedbitmap: True(s)
decorative: False(s)
+ lcdfilter: 1(i)(w)
namelang: "en"(s)
prgname: "fc-match"(s)
postscriptname: "CourierNewPSMT"(w)
Comment 9•7 years ago
|
||
OK, so this is the truetype Courier New from the MS core fonts collection. Lee, any idea why it would be failing to render on one of these systems (where LCD antialiasing is enabled, apparently)?
Flags: needinfo?(lsalzman)
Reporter | ||
Comment 11•7 years ago
|
||
Ah, yes, that's it. Turning off webrender fixes the problem. What should I do to get more webrender debug info?
Flags: needinfo?(samth)
Updated•7 years ago
|
Component: Graphics: Text → Graphics: WebRender
Keywords: regression
Comment 12•7 years ago
|
||
Can't reproduce @ Debian Testing, KDE, Radeon RX480. Btw your tabs (Github, Bugzilla) are showing WebRender bug 1418718.
Blocks: webrender-site-issues
status-firefox57:
--- → unaffected
status-firefox58:
--- → unaffected
status-firefox-esr52:
--- → unaffected
Comment 13•7 years ago
|
||
I suspect this is a manifestation of the same problem in bug 1422408. The WebRender update on Dec 5 fixed a bug that prevented embedded bitmaps from loading. So if things render fine without embedded bitmaps, that indicates the font has scalable outlines in it AND embedded bitmaps, and we're choosing the wrong ones. I will fix bug 1422408 first and we can reevaluate if this one is fixed.
Updated•7 years ago
|
Whiteboard: [wr-mvp] [triage]
Updated•7 years ago
|
Blocks: stage-wr-trains
Priority: -- → P3
Reporter | ||
Comment 15•7 years ago
|
||
This appears to be fixed. Thanks!
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: needinfo?(samth)
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•