Not allowing pages to choose their own fonts breaks with icon fonts
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: otsaloma, Assigned: jfkthame)
References
(Depends on 1 open bug)
Details
Attachments
(1 file, 3 obsolete files)
8.13 KB,
patch
|
dbaron
:
review+
|
Details | Diff | Splinter Review |
Updated•12 years ago
|
Comment 2•12 years ago
|
||
Comment 3•12 years ago
|
||
Reporter | ||
Comment 4•12 years ago
|
||
Assignee | ||
Comment 5•12 years ago
|
||
Comment 6•12 years ago
|
||
Assignee | ||
Comment 7•12 years ago
|
||
Comment 8•12 years ago
|
||
Comment 10•12 years ago
|
||
Assignee | ||
Comment 11•12 years ago
|
||
Comment 12•12 years ago
|
||
Comment 15•11 years ago
|
||
Comment 16•11 years ago
|
||
Reporter | ||
Comment 17•11 years ago
|
||
Comment 18•11 years ago
|
||
Comment 19•11 years ago
|
||
Reporter | ||
Comment 20•11 years ago
|
||
Assignee | ||
Comment 21•11 years ago
|
||
Comment 22•11 years ago
|
||
Comment 23•11 years ago
|
||
Comment 24•11 years ago
|
||
Comment 25•11 years ago
|
||
Comment 26•11 years ago
|
||
Comment 27•11 years ago
|
||
Comment 29•11 years ago
|
||
Comment 30•11 years ago
|
||
Comment 31•11 years ago
|
||
Comment 32•11 years ago
|
||
Comment 33•11 years ago
|
||
Comment 37•11 years ago
|
||
Comment 38•11 years ago
|
||
Comment 39•11 years ago
|
||
Comment 40•11 years ago
|
||
Comment 41•11 years ago
|
||
Comment 42•11 years ago
|
||
Comment 43•11 years ago
|
||
Comment 44•11 years ago
|
||
Comment 45•11 years ago
|
||
Comment 47•11 years ago
|
||
Comment 48•11 years ago
|
||
Comment 49•11 years ago
|
||
Reporter | ||
Comment 50•11 years ago
|
||
Comment 51•11 years ago
|
||
Reporter | ||
Comment 52•11 years ago
|
||
Comment 53•11 years ago
|
||
Comment 54•11 years ago
|
||
Comment 57•11 years ago
|
||
Comment 58•11 years ago
|
||
Comment 59•11 years ago
|
||
Assignee | ||
Comment 60•11 years ago
|
||
Assignee | ||
Comment 61•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Comment 62•11 years ago
|
||
Assignee | ||
Comment 63•11 years ago
|
||
Comment 64•11 years ago
|
||
Assignee | ||
Comment 65•11 years ago
|
||
Comment 66•11 years ago
|
||
Assignee | ||
Comment 67•11 years ago
|
||
Assignee | ||
Comment 68•11 years ago
|
||
Comment 69•11 years ago
|
||
Comment 70•11 years ago
|
||
Comment 71•11 years ago
|
||
Comment 72•11 years ago
|
||
Comment 73•11 years ago
|
||
Comment 74•11 years ago
|
||
Comment 76•11 years ago
|
||
Comment 77•11 years ago
|
||
Comment 79•11 years ago
|
||
Comment 80•11 years ago
|
||
Assignee | ||
Comment 81•11 years ago
|
||
Comment 82•11 years ago
|
||
Comment 83•11 years ago
|
||
Comment 84•11 years ago
|
||
Comment 85•11 years ago
|
||
Assignee | ||
Comment 86•11 years ago
|
||
Comment 87•11 years ago
|
||
Comment 88•11 years ago
|
||
Comment 89•11 years ago
|
||
Assignee | ||
Comment 90•11 years ago
|
||
Comment 91•11 years ago
|
||
Comment 92•11 years ago
|
||
Comment 93•11 years ago
|
||
Comment 94•11 years ago
|
||
Comment 95•11 years ago
|
||
Comment 97•10 years ago
|
||
Comment 99•10 years ago
|
||
Comment 100•10 years ago
|
||
Comment 101•10 years ago
|
||
Comment 102•10 years ago
|
||
Comment 103•10 years ago
|
||
Comment 104•10 years ago
|
||
Comment 105•10 years ago
|
||
Comment 106•10 years ago
|
||
Comment 107•10 years ago
|
||
Comment 108•10 years ago
|
||
Comment 109•10 years ago
|
||
Comment 110•10 years ago
|
||
Comment 113•9 years ago
|
||
Assignee | ||
Comment 114•9 years ago
|
||
Assignee | ||
Comment 115•9 years ago
|
||
Comment 116•9 years ago
|
||
Assignee | ||
Comment 117•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 118•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 119•9 years ago
|
||
Comment 120•9 years ago
|
||
Comment 121•9 years ago
|
||
Comment 122•9 years ago
|
||
Comment 123•9 years ago
|
||
Comment 124•9 years ago
|
||
Comment 125•9 years ago
|
||
Comment 126•9 years ago
|
||
Comment 127•9 years ago
|
||
Comment 128•9 years ago
|
||
Comment 129•9 years ago
|
||
Comment 130•9 years ago
|
||
Comment 131•9 years ago
|
||
Comment 132•9 years ago
|
||
Assignee | ||
Comment 134•9 years ago
|
||
Assignee | ||
Comment 135•9 years ago
|
||
Assignee | ||
Comment 136•9 years ago
|
||
Assignee | ||
Comment 137•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 139•9 years ago
|
||
Comment 140•9 years ago
|
||
Comment 141•9 years ago
|
||
Comment 142•9 years ago
|
||
Comment 143•9 years ago
|
||
Comment 144•9 years ago
|
||
Assignee | ||
Comment 145•9 years ago
|
||
Comment 146•9 years ago
|
||
Comment 147•9 years ago
|
||
Comment 148•9 years ago
|
||
Comment 149•9 years ago
|
||
Assignee | ||
Comment 150•9 years ago
|
||
Comment 151•9 years ago
|
||
Comment 156•8 years ago
|
||
Comment 159•8 years ago
|
||
Assignee | ||
Comment 160•8 years ago
|
||
Comment 161•8 years ago
|
||
Comment 162•7 years ago
|
||
Assignee | ||
Comment 163•7 years ago
|
||
Comment 164•7 years ago
|
||
Comment 165•4 years ago
|
||
This has been closed for a long time, but was there a regression? Ever since I've started using the minimum font size settings, which requires unchecking the box for not allowing sites to choose their own fonts, icon fonts have been broken. The errors are most notable on Google sites but occur in various places across the web.
To reproduce the error:
- open firefox preferences
- ensure you're looking at "Fonts for: Latin"
- uncheck 'allow pages to choose their own fonts, instead of your selections above'.
- go to https://web.dev/measure/ and enter any url to analyze.
- scroll down to the benchmark measures; you'll see serif text with words like 'bookmark', 'check_circle', and 'arrow_drop_down' cluttering up the UI.
This ties into a wider issue, that I can't find a bug about: why does my minimum font size preference need to change the font in use at all? As a person with lower-than-average vision who relies on that setting, I'd rather see the same fonts as everyone else, just big enough for me to see them. Text only zoom doesn't really solve my use case; the text that's already very large doesn't need to be even large, but text that's small does need bumped up to my minimum size.
Assignee | ||
Comment 166•4 years ago
|
||
This isn't a regression; the page you're looking at uses a font where the icons are not encoded as unique Private Use Area codepoints (in which case we'd expect the page's icon font to be used, rather than the browser's default Latin font), but rather they're represented as simple strings of English text, and the expectation is that the font will form whole-word ligatures such as a "bookmark" glyph from the characters 'b', 'o', 'o', 'k', 'm', 'a', 'r', 'k.
But as the content here is simple English text, there's no way for the browser to know that the page intended this particular word to be treated specially by the font. When you tell Firefox to prefer the fonts specified in Preferences, rather than the fonts from the web page, it looks at the word "bookmark" and sees that this works fine with the default Preferences font, so it doesn't have any reason to resort to the icon font from the page (as it would if the icon were encoded using a Private Use codepoint).
Having said that .... as far as I know, you should be able to set a Minimum Font Size in the Firefox Preferences, while still leaving the "Allow pages to choose their own fonts" option enabled. This seems to work for me: if I set a large Minimum, then (even though I'm still allowing pages to choose their own fonts) I see larger font sizes being used.
Comment 167•4 years ago
|
||
Thanks Johnathan, that makes sense.
When I tested in the past, it seemed like fonts wouldn't increase in size if I changed the minimum with 'Allow pages to choose their own fonts' enabled. Very probably I got confused in my testing, because I'm seeing a similar behavior to you now. Yay! This will make my web life easier. Thanks for your help, and sorry for the misdirection in my first comment.
Comment 169•2 years ago
|
||
(In reply to Cassey Lottman from comment #167)
When I tested in the past, it seemed like fonts wouldn't increase in size if I changed the minimum with 'Allow pages to choose their own fonts' enabled. Very probably I got confused in my testing, because I'm seeing a similar behavior to you now. Yay! This will make my web life easier. Thanks for your help, and sorry for the misdirection in my first comment.
Note that some websites (e.g. Google, if this is still the case) use a font that is smaller than the real size. I doubt that Firefox can detect that. (And increasing the Minimum Font Size is not a solution as this would make fonts too large on other web pages.) So the option to disable "allow pages to use their own fonts" is useful for real text.
(In reply to Jonathan Kew (:jfkthame) from comment #166)
This isn't a regression; the page you're looking at uses a font where the icons are not encoded as unique Private Use Area codepoints (in which case we'd expect the page's icon font to be used, rather than the browser's default Latin font), but rather they're represented as simple strings of English text, and the expectation is that the font will form whole-word ligatures such as a "bookmark" glyph from the characters 'b', 'o', 'o', 'k', 'm', 'a', 'r', 'k.
Concerning this issue, there is now bug 1638585.
Description
•