mirror of
https://github.com/roytam1/basilisk55.git
synced 2026-05-26 15:02:46 +00:00
import from UXP: [gfx] Ensure font entry's unitsPerEm and font extents are initialized when gfxFont is created. (7672f932)
This commit is contained in:
@@ -856,6 +856,10 @@ gfxFont::gfxFont(gfxFontEntry *aFontEntry, const gfxFontStyle *aFontStyle,
|
||||
++gFontCount;
|
||||
#endif
|
||||
mKerningSet = HasFeatureSet(HB_TAG('k','e','r','n'), mKerningEnabled);
|
||||
|
||||
// Ensure the gfxFontEntry's unitsPerEm and extents fields are initialized,
|
||||
// so that GetFontExtents can use them without risk of races.
|
||||
Unused << mFontEntry->UnitsPerEm();
|
||||
}
|
||||
|
||||
gfxFont::~gfxFont()
|
||||
|
||||
Reference in New Issue
Block a user