mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
[gfx] Put Skia-specific CTOR init behind Skia-conditional.
This commit is contained in:
parent
beed2a817e
commit
62a46687d6
1 changed files with 2 additions and 0 deletions
|
|
@ -110,10 +110,12 @@ ScaledFontDWrite::ScaledFontDWrite(IDWriteFontFace *aFontFace, Float aSize,
|
|||
, mUseEmbeddedBitmap(aUseEmbeddedBitmap)
|
||||
, mForceGDIMode(aForceGDIMode)
|
||||
{
|
||||
#ifdef USE_SKIA
|
||||
mStyle = SkFontStyle(aStyle->weight,
|
||||
DWriteFontStretchFromStretch(aStyle->stretch),
|
||||
aStyle->style == NS_FONT_STYLE_NORMAL ?
|
||||
SkFontStyle::kUpright_Slant : SkFontStyle::kItalic_Slant);
|
||||
#endif
|
||||
}
|
||||
|
||||
already_AddRefed<Path>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue