[tbb-commits] [Git][tpo/applications/tor-browser][base-browser-128.2.0esr-14.0-1] squash! Bug 41043: Hardcode the UI font on Linux

morgan (@morgan) git at gitlab.torproject.org
Mon Sep 16 17:42:35 UTC 2024



morgan pushed to branch base-browser-128.2.0esr-14.0-1 at The Tor Project / Applications / Tor Browser


Commits:
cfed101d by Pier Angelo Vendrame at 2024-09-16T17:42:17+00:00
squash! Bug 41043: Hardcode the UI font on Linux

Bug 43141: Hardcode system-ui to Arimo.

- - - - -


2 changed files:

- gfx/thebes/gfxPlatformFontList.cpp
- layout/base/nsLayoutUtils.cpp


Changes:

=====================================
gfx/thebes/gfxPlatformFontList.cpp
=====================================
@@ -2055,6 +2055,11 @@ static void GetSystemUIFontFamilies(const nsPresContext* aPresContext,
 #if defined(XP_MACOSX) || defined(MOZ_WIDGET_UIKIT)
     *aFamilies.AppendElement() = "-apple-system"_ns;
     return;
+#elif defined(MOZ_WIDGET_GTK)
+    // tor-browser#43141: Hardcode Arimo in case our custom fontconfig is
+    // missing.
+    *aFamilies.AppendElement() = "Arimo"_ns;
+    return;
 #elif !defined(MOZ_WIDGET_ANDROID)
     *aFamilies.AppendElement() = "sans-serif"_ns;
     return;


=====================================
layout/base/nsLayoutUtils.cpp
=====================================
@@ -9720,7 +9720,9 @@ static void GetSpoofedSystemFontForRFP(LookAndFeel::FontID aFontID,
   // In general, Linux uses some sans-serif, but its size can vary between
   // 12px and 16px. We chose 15px because it is what Firefox is doing for the
   // UI font-size.
-  aName = u"sans-serif"_ns;
+  // tor-browser#43141: Hardcode Arimo in case our custom fontconfig is
+  // missing.
+  aName = u"Arimo"_ns;
   aStyle.size = 15;
 #else
 #  error "Unknown platform"



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/cfed101ddae36227f73634eac97e61afac239bf3

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/cfed101ddae36227f73634eac97e61afac239bf3
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20240916/e3f8e3bd/attachment-0001.htm>


More information about the tbb-commits mailing list