mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 08:18:41 +09:00
[gfx] Ensure font entry's unitsPerEm and font extents are initialized when gfxFont is created.
This commit is contained in:
parent
22830d18cf
commit
7672f932f7
1 changed files with 4 additions and 0 deletions
|
|
@ -860,6 +860,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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue