Open
Bug 1300782
Opened 8 years ago
Updated 2 years ago
Depending on gfx.font_rendering.fontconfig.fontlist.enabled, either Firefox does not use the GTK font for its interface, or some website text gets "out of line"
Categories
(Core :: Graphics: Text, defect, P3)
Tracking
()
UNCONFIRMED
People
(Reporter: andydecleyre, Unassigned)
Details
(Whiteboard: [gfx-noted])
Attachments
(1 file)
119.57 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0 Build ID: 20160824215626 Steps to reproduce: On Arch Linux, Plasma Desktop, Firefox 48.0.2 ~/.config/gtk-3.0/settings.ini starts with: ``` [Settings] gtk-font-name=Dosis Medium 16 ``` Launch Firefox Actual results: Firefox will not use that specified font for the interface, unless I disable gfx.font_rendering.fontconfig.fontlist.enabled When that is disabled, the specified font is used for the interface, but some websites show text that isn't in a straight horizontal line: http://i.imgur.com/Yhtc00h.png (also attached) Expected results: Without disabling gfx.font_rendering.fontconfig.fontlist.enabled Firefox should have used the font specified in settings.ini for its interface.
Comment 1•8 years ago
|
||
I think there have been some relatively recent fixes that might be relevant to this. Do you see the same issues in a current Developer Edition (Firefox 50) or Nightly (FF 51) version? Dev. Ed: https://www.mozilla.org/en-US/firefox/channel/#developer Nightly: https://nightly.mozilla.org/
Updated•8 years ago
|
Whiteboard: [gfx-noted]
Reporter | ||
Comment 2•8 years ago
|
||
Ah! As long as gfx.font_rendering.fontconfig.fontlist.enabled is set to false, nightly seems to make it all look good. So unless it's wrong or a problem to change that value, and that code will make it to stable, this can be closed. Thanks! Tested with FF 51.0a1.20160906.
Comment 3•8 years ago
|
||
Setting gfx.font_rendering.fontconfig.fontlist.enabled to false makes Firefox use an older implementation of its font-handling code. I expect this code will eventually be removed, so that "workaround" will not be available indefinitely. So if you run Nightly with gfx.font_rendering.fontconfig.fontlist.enabled set to true (the default), what problem(s) do you see? I guess it still fails to use the Dosis Medium font from your Gtk configuration? What kind of font is that? If you run fc-list | grep Dosis in a terminal, what does it show?
Reporter | ||
Comment 4•8 years ago
|
||
Yes, when the setting is true the interface does not follow the GTK-set font. Here's info on the font: https://fonts.google.com/specimen/Dosis Here's that output: /usr/share/fonts/TTF/Dosis-Regular.ttf: Dosis:style=Regular /usr/share/fonts/TTF/TerminalDosis-Light.ttf: Terminal Dosis:style=Light /usr/share/fonts/TTF/Dosis-ExtraLight.ttf: Dosis:style=ExtraLight /usr/share/fonts/TTF/TerminalDosis-SemiBold.ttf: Terminal Dosis:style=SemiBold /usr/share/fonts/TTF/Dosis-Light.ttf: Dosis:style=Light /usr/share/fonts/TTF/TerminalDosis-Medium.ttf: Terminal Dosis:style=Medium /usr/share/fonts/TTF/TerminalDosis-Regular.ttf: Terminal Dosis:style=Regular /usr/share/fonts/TTF/Dosis-SemiBold.ttf: Dosis:style=SemiBold /usr/share/fonts/TTF/Dosis-Bold.ttf: Dosis:style=Bold /usr/share/fonts/TTF/Dosis-ExtraBold.ttf: Dosis:style=ExtraBold /usr/share/fonts/TTF/TerminalDosis-ExtraBold.ttf: Terminal Dosis:style=ExtraBold /usr/share/fonts/TTF/TerminalDosis-ExtraLight.ttf: Terminal Dosis:style=ExtraLight /usr/share/fonts/TTF/Dosis-Medium.ttf: Dosis:style=Medium /usr/share/fonts/TTF/TerminalDosis-Bold.ttf: Terminal Dosis:style=Bold
Comment 5•8 years ago
|
||
So the font family name is apparently 'Dosis', and 'Dosis Medium' is the fullname of a specific face. I'm not really sure offhand how all this interacts, but I wonder whether a settings.ini value of gtk-font-name=Dosis 16 would find the font? I'm not sure what effect that would have on other software, either, but it might be an interesting experiment, at least. Also, does it show up in the list of available fonts in about:preferences#content?
Reporter | ||
Comment 6•8 years ago
|
||
Removing "Medium" from the settings.ini does not make Firefox take the font assignment. Yes, "Dosis" can be chosen from the list in the preferences.
Reporter | ||
Comment 7•7 years ago
|
||
Just popping in to say I still rely on this workaround with 51.0.1.
Updated•7 years ago
|
Priority: -- → P3
Reporter | ||
Comment 8•7 years ago
|
||
Now that 55 is here, that config option seems to be gone/deprecated, and there's no controlling the UI fonts anymore. Maybe userChrome.css?
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•