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


Commits:
1007972e by Pier Angelo Vendrame at 2025-10-23T09:41:59+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/mullvad-browser/-/commit/1007972e2882f90c53a78b6daaf8976ef22cbb52

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/1007972e2882f90c53a78b6daaf8976ef22cbb52
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