Pier Angelo Vendrame pushed to branch base-browser-140.4.0esr-15.0-1 at The Tor 
Project / Applications / Tor Browser


Commits:
64a7d742 by Pier Angelo Vendrame at 2025-10-23T09:42:28+02:00
fixup! BB 43140: Tighten up fonts on Linux.

BB 44286: Hardcode GTK system font.

- - - - -


1 changed file:

- widget/gtk/nsLookAndFeel.cpp


Changes:

=====================================
widget/gtk/nsLookAndFeel.cpp
=====================================
@@ -1235,6 +1235,13 @@ static void GetSystemFontInfo(GtkStyleContext* aStyle, 
nsString* aFontName,
                               gfxFontStyle* aFontStyle) {
   aFontStyle->style = FontSlantStyle::NORMAL;
 
+#ifdef BASE_BROWSER_VERSION
+  *aFontName = u"\"Arimo\"";
+  aFontStyle->systemFont = true;
+  aFontStyle->weight = FontWeight::NORMAL;
+  aFontStyle->stretch = FontStretch::NORMAL;
+  aFontStyle->size = 14;
+#else
   // As in
   // https://git.gnome.org/browse/gtk+/tree/gtk/gtkwidget.c?h=3.22.19#n10333
   PangoFontDescription* desc;
@@ -1269,6 +1276,7 @@ static void GetSystemFontInfo(GtkStyleContext* aStyle, 
nsString* aFontName,
   aFontStyle->size = size;
 
   pango_font_description_free(desc);
+#endif
 }
 
 bool nsLookAndFeel::NativeGetFont(FontID aID, nsString& aFontName,



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

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


_______________________________________________
tbb-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to