mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-26 00:57:30 +09:00
Use FC_OUTLINE instead of FC_SCALABLE with Fontconfig to check if a font is scalable.
This commit is contained in:
parent
663b7836f5
commit
2c33a1ce08
1 changed files with 3 additions and 3 deletions
|
|
@ -946,9 +946,9 @@ gfxFontconfigFontFamily::AddFontPattern(FcPattern* aFontPattern)
|
||||||
NS_ASSERTION(!mHasStyles,
|
NS_ASSERTION(!mHasStyles,
|
||||||
"font patterns must not be added to already enumerated families");
|
"font patterns must not be added to already enumerated families");
|
||||||
|
|
||||||
FcBool scalable;
|
FcBool outline;
|
||||||
if (FcPatternGetBool(aFontPattern, FC_SCALABLE, 0, &scalable) != FcResultMatch ||
|
if (FcPatternGetBool(aFontPattern, FC_OUTLINE, 0, &outline) != FcResultMatch ||
|
||||||
!scalable) {
|
!outline) {
|
||||||
mHasNonScalableFaces = true;
|
mHasNonScalableFaces = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue