mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 00:38:39 +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,
|
||||
"font patterns must not be added to already enumerated families");
|
||||
|
||||
FcBool scalable;
|
||||
if (FcPatternGetBool(aFontPattern, FC_SCALABLE, 0, &scalable) != FcResultMatch ||
|
||||
!scalable) {
|
||||
FcBool outline;
|
||||
if (FcPatternGetBool(aFontPattern, FC_OUTLINE, 0, &outline) != FcResultMatch ||
|
||||
!outline) {
|
||||
mHasNonScalableFaces = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue