mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-04 14:27:30 +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)
|
, mUseEmbeddedBitmap(aUseEmbeddedBitmap)
|
||||||
, mForceGDIMode(aForceGDIMode)
|
, mForceGDIMode(aForceGDIMode)
|
||||||
{
|
{
|
||||||
|
#ifdef USE_SKIA
|
||||||
mStyle = SkFontStyle(aStyle->weight,
|
mStyle = SkFontStyle(aStyle->weight,
|
||||||
DWriteFontStretchFromStretch(aStyle->stretch),
|
DWriteFontStretchFromStretch(aStyle->stretch),
|
||||||
aStyle->style == NS_FONT_STYLE_NORMAL ?
|
aStyle->style == NS_FONT_STYLE_NORMAL ?
|
||||||
SkFontStyle::kUpright_Slant : SkFontStyle::kItalic_Slant);
|
SkFontStyle::kUpright_Slant : SkFontStyle::kItalic_Slant);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
already_AddRefed<Path>
|
already_AddRefed<Path>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue