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

Commits:

1 changed file:

Changes:

  • widget/gtk/nsLookAndFeel.cpp
    ... ... @@ -1235,6 +1235,13 @@ static void GetSystemFontInfo(GtkStyleContext* aStyle, nsString* aFontName,
    1235 1235
                                   gfxFontStyle* aFontStyle) {
    
    1236 1236
       aFontStyle->style = FontSlantStyle::NORMAL;
    
    1237 1237
     
    
    1238
    +#ifdef BASE_BROWSER_VERSION
    
    1239
    +  *aFontName = u"\"Arimo\"";
    
    1240
    +  aFontStyle->systemFont = true;
    
    1241
    +  aFontStyle->weight = FontWeight::NORMAL;
    
    1242
    +  aFontStyle->stretch = FontStretch::NORMAL;
    
    1243
    +  aFontStyle->size = 14;
    
    1244
    +#else
    
    1238 1245
       // As in
    
    1239 1246
       // https://git.gnome.org/browse/gtk+/tree/gtk/gtkwidget.c?h=3.22.19#n10333
    
    1240 1247
       PangoFontDescription* desc;
    
    ... ... @@ -1269,6 +1276,7 @@ static void GetSystemFontInfo(GtkStyleContext* aStyle, nsString* aFontName,
    1269 1276
       aFontStyle->size = size;
    
    1270 1277
     
    
    1271 1278
       pango_font_description_free(desc);
    
    1279
    +#endif
    
    1272 1280
     }
    
    1273 1281
     
    
    1274 1282
     bool nsLookAndFeel::NativeGetFont(FontID aID, nsString& aFontName,