-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[master] add NOTICE for browser.display.use_document_fonts #300
Conversation
AFAIK, this does not block icon fonts / glyphs : which is But as for a relaxed branch, for sure (up to you guys). I just don't agree with your argument as to why. |
Strange, with |
You must be blocking it via some other mechanism - maybe something in NS? http://terrillthompson.com/tests/icomoon/ - this is a simple test page I have
I see broken icons for the player controls. But if I add an exception to uBo: |
It is unclear what's going on:
Do you have the same results? |
I have:
I get: Imgur: Imgur (with |
@pyllyukko your results are the same as mine, so it's safe to assume that PS. do you also have this problem? (broken ublock icons) |
@nodiscc What are your default fonts in Options>Content>Fonts&Colors>Advanced ? Do you have DejaVu Sans? The reason I ask is that your icons are not "invalid". That is the padlock and power icons are showing, they are just using the wrong font. If they were invalid you would see those rectangular hex symbols. I went to a lot of trouble to day to read up on all this. It took them over 2 years to work out how to apply the patch, so excuse my ignorant less technical answer. If your user-defined set of fonts returns an invalid character, THEN it will allow the font (local or downloaded) - this has mostly to do with PUA.
https://bugzilla.mozilla.org/show_bug.cgi?id=789788#c66
That's the uBo issue - the icon code points in your default user defined fonts ARE valid (for the padlock and power button) for your user-defined font (the same issue as above re DejaVu Sans using PUA codepoints itself with its own glyphs). The issue with hex icons being displayed is different - that's when the font is blocked, and you fall back to the invalid chars. EDIT: The other issue with broken glyphs is that a lot of icon fonts don't map to PUAs, so the solution is not perfect
I hope this helps. You could try changing your default fonts in a test profile - I don't know what comes in debian, sorry. Do you have Arial - that's what windows uses for the sans. |
@Thorin-Oakenpants It was set to changing it to Droid Sans, DejaVu Sans, DejaVu Serif... or the generic I can never display icons properly on http://imgur.com/ regardless of my configuration. So at least this particular website problem is not linked to So my particular problem was caused by having As the problems seems to be very specific to Debian (maybe derivatives?) there is no good reason to change the setting for everyone (it will be very hard to find a common font working on all systems). I have set If the problem arises again we can point other users here. |
Your welcome, thanks for listening. I guess a super easy explanation is (and I am not an expert)
In a perfect world, system/browser default fonts would not use PUA, and all glyphs would use PUA - but we know this is not the case, hence weird things happen |
Aside from the minor inconvenience of having all pages display with default Serif/Sans Serif fonts (you get used to it),
browser.display.use_document_fonts = false
breaks functionality on websites using icon fonts (such as font awesome) to display UI elements/buttons/symbols/...This is one of the main complaints I've heard from
user.js
users IRL/online. I have disabled this myself. A a lot of websites make heavy use of icon fonts, sometimes there's analt
text or other indication that this or that is the button you are looking for, but most often not. As it's only used to prevent fingerprinting I suggest that it can be disabled in https://github.com/pyllyukko/user.js/tree/relaxed. Should I send another patch?