BB 43140: Tighten up fonts on Linux.
We ship a fontconfig configuration to esnure all Linux users have the same defaults and reduce the chances of fingerprinting. We used to add this file in tor-browser-build, but some users might skip it by using the browser executable without the wrapper script. Therefore, we decided to activate the file with the FontConfig API instead of the environment variables. Bug 41043: Hardcode the UI font on Linux The mechanism to choose the UI font does not play well with our fontconfig configuration. As a result, the final criterion to choose the font for the UI was its version. Since we hardcode Arimo as a default sans-serif on preferences, we use it also for the UI. FontConfig will fall back to some other font for scripts Arimo does not cover as expected (we tested with Japanese). Bug 43141: Hardcode system-ui to Arimo.
parent
00d1f9d4
No related branches found
No related tags found
Showing
- browser/fonts/fonts.conf 183 additions, 0 deletionsbrowser/fonts/fonts.conf
- browser/fonts/moz.build 3 additions, 0 deletionsbrowser/fonts/moz.build
- gfx/thebes/gfxFcPlatformFontList.cpp 6 additions, 5 deletionsgfx/thebes/gfxFcPlatformFontList.cpp
- gfx/thebes/gfxPlatformFontList.cpp 5 additions, 0 deletionsgfx/thebes/gfxPlatformFontList.cpp
- layout/base/nsLayoutUtils.cpp 3 additions, 1 deletionlayout/base/nsLayoutUtils.cpp
- toolkit/xre/nsXREDirProvider.cpp 26 additions, 0 deletionstoolkit/xre/nsXREDirProvider.cpp
Loading
Please register or sign in to comment