mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-23 07:37:29 +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;
|
++gFontCount;
|
||||||
#endif
|
#endif
|
||||||
mKerningSet = HasFeatureSet(HB_TAG('k','e','r','n'), mKerningEnabled);
|
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()
|
gfxFont::~gfxFont()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue