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

[tor-commits] [tor-browser] 139/311: Bug 1758315 - Call SetupVariationRanges when initializing font attributes in the FT2 font-list, to handle installed fonts with variation axes. r=emilio, a=dmeehan



This is an automated email from the git hooks/post-receive script.

pierov pushed a commit to branch geckoview-99.0.1-11.0-1
in repository tor-browser.

commit d897dda8e247097796df2d1ef319437dcf5c5842
Author: Jonathan Kew <jkew@xxxxxxxxxxx>
AuthorDate: Tue Mar 8 16:02:41 2022 +0000

    Bug 1758315 - Call SetupVariationRanges when initializing font attributes in the FT2 font-list, to handle installed fonts with variation axes. r=emilio, a=dmeehan
    
    Differential Revision: https://phabricator.services.mozilla.com/D140538
---
 gfx/thebes/gfxFT2FontList.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gfx/thebes/gfxFT2FontList.cpp b/gfx/thebes/gfxFT2FontList.cpp
index 93e7cd291e491..5045744bd4976 100644
--- a/gfx/thebes/gfxFT2FontList.cpp
+++ b/gfx/thebes/gfxFT2FontList.cpp
@@ -307,6 +307,10 @@ static void SetPropertiesFromFace(gfxFontEntry* aFontEntry,
       (style & 2) ? FontSlantStyle::Italic() : FontSlantStyle::Normal());
   aFontEntry->mWeightRange = WeightRange(FontWeight(int(os2weight)));
   aFontEntry->mStretchRange = StretchRange(FontStretch(stretch));
+
+  // For variable fonts, update the style/weight/stretch attributes if the
+  // corresponding variation axes are present.
+  aFontEntry->SetupVariationRanges();
 }
 
 // Used to create the font entry for installed faces on the device,

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits