[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-102.10.0esr-12.5-1] 2 commits: Bug 1792157 - Ensure correct font-visibility for bundled fonts on Linux when...



Title: GitLab

Pier Angelo Vendrame pushed to branch tor-browser-102.10.0esr-12.5-1 at The Tor Project / Applications / Tor Browser

Commits:

  • a0b015c4
    by Jonathan Kew at 2023-04-17T19:00:43+02:00
    Bug 1792157 - Ensure correct font-visibility for bundled fonts on Linux when they 'shadow' system-installed families. r=gfx-reviewers,lsalzman
    
    Differential Revision: https://phabricator.services.mozilla.com/D175350
  • c24cc05f
    by Pier Angelo Vendrame at 2023-04-17T19:02:29+02:00
    fixup! Firefox preference overrides.
    
    Bug 41163: Many bundled fonts are blocked in Ubuntu/Fedora because of RFP
    
    Removed the workaround now that we have the upstream fix.
    

2 changed files:

Changes:

  • browser/app/profile/001-base-profile.js
    ... ... @@ -696,8 +696,6 @@ pref("font.name-list.monospace.x-unicode", "Consolas, Noto Sans Balinese, Noto S
    696 696
     #endif
    
    697 697
     
    
    698 698
     #ifdef XP_LINUX
    
    699
    -pref("layout.css.font-visibility.resistFingerprinting", 3); // work around bug 41163
    
    700
    -
    
    701 699
     // Arabic
    
    702 700
     pref("font.name-list.serif.ar", "Noto Naskh Arabic, Tinos");
    
    703 701
     pref("font.name-list.sans-serif.ar", "Noto Naskh Arabic, Arimo");
    

  • gfx/thebes/gfxFcPlatformFontList.cpp
    ... ... @@ -1869,17 +1869,19 @@ void gfxFcPlatformFontList::InitSharedFontListForPlatform() {
    1869 1869
         }
    
    1870 1870
       };
    
    1871 1871
     
    
    1872
    -  // iterate over available fonts
    
    1873
    -  FcFontSet* systemFonts = FcConfigGetFonts(nullptr, FcSetSystem);
    
    1874
    -  addFontSetFamilies(systemFonts, policy.get(), /* aAppFonts = */ false);
    
    1875
    -
    
    1876 1872
     #ifdef MOZ_BUNDLED_FONTS
    
    1873
    +  // Add bundled fonts before system fonts, to set correct visibility status
    
    1874
    +  // for any families that appear in both.
    
    1877 1875
       if (StaticPrefs::gfx_bundled_fonts_activate_AtStartup() != 0) {
    
    1878 1876
         FcFontSet* appFonts = FcConfigGetFonts(nullptr, FcSetApplication);
    
    1879 1877
         addFontSetFamilies(appFonts, policy.get(), /* aAppFonts = */ true);
    
    1880 1878
       }
    
    1881 1879
     #endif
    
    1882 1880
     
    
    1881
    +  // iterate over available fonts
    
    1882
    +  FcFontSet* systemFonts = FcConfigGetFonts(nullptr, FcSetSystem);
    
    1883
    +  addFontSetFamilies(systemFonts, policy.get(), /* aAppFonts = */ false);
    
    1884
    +
    
    1883 1885
       mozilla::fontlist::FontList* list = SharedFontList();
    
    1884 1886
       list->SetFamilyNames(families);
    
    1885 1887
     
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits