Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 997c907

Browse files
Ben WagnerSkia Commit-Bot
authored andcommitted
Rename kMultiMaster_FontFlag to kVariable_FontFlag
The older font format is mostly unused now. Use the new name for fonts with parameteriazable glyph outlines. Change-Id: Ia632f79684b2c4399d216855cfe0822f535189c7 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/307792 Commit-Queue: Jim Van Verth <jvanverth@google.com> Auto-Submit: Ben Wagner <bungeman@google.com> Reviewed-by: Jim Van Verth <jvanverth@google.com>
1 parent ed80035 commit 997c907

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/core/SkAdvancedTypefaceMetrics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ struct SkAdvancedTypefaceMetrics {
4848
FontType fType = kOther_Font;
4949

5050
enum FontFlags : uint8_t {
51-
kMultiMaster_FontFlag = 0x01, //!<May be true for Type1, CFF, or TrueType fonts.
51+
kVariable_FontFlag = 0x01, //!<May be true for Type1, CFF, or TrueType fonts.
5252
kNotEmbeddable_FontFlag = 0x02, //!<May not be embedded.
5353
kNotSubsettable_FontFlag = 0x04, //!<May not be subset.
5454
};

src/pdf/SkPDFFont.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ const std::vector<SkUnichar>& SkPDFFont::GetUnicodeMap(const SkTypeface* typefac
167167
}
168168

169169
SkAdvancedTypefaceMetrics::FontType SkPDFFont::FontType(const SkAdvancedTypefaceMetrics& metrics) {
170-
if (SkToBool(metrics.fFlags & SkAdvancedTypefaceMetrics::kMultiMaster_FontFlag) ||
170+
if (SkToBool(metrics.fFlags & SkAdvancedTypefaceMetrics::kVariable_FontFlag) ||
171171
SkToBool(metrics.fFlags & SkAdvancedTypefaceMetrics::kNotEmbeddable_FontFlag)) {
172172
// force Type3 fallback.
173173
return SkAdvancedTypefaceMetrics::kOther_Font;

src/ports/SkFontHost_FreeType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ std::unique_ptr<SkAdvancedTypefaceMetrics> SkTypeface_FreeType::onGetAdvancedMet
601601
info->fFontName = info->fPostScriptName;
602602

603603
if (FT_HAS_MULTIPLE_MASTERS(face)) {
604-
info->fFlags |= SkAdvancedTypefaceMetrics::kMultiMaster_FontFlag;
604+
info->fFlags |= SkAdvancedTypefaceMetrics::kVariable_FontFlag;
605605
}
606606
if (!canEmbed(face)) {
607607
info->fFlags |= SkAdvancedTypefaceMetrics::kNotEmbeddable_FontFlag;

src/ports/SkTypeface_mac_ct.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ std::unique_ptr<SkAdvancedTypefaceMetrics> SkTypeface_Mac::onGetAdvancedMetrics(
566566

567567
SkUniqueCFRef<CFArrayRef> ctAxes(CTFontCopyVariationAxes(ctFont.get()));
568568
if (ctAxes && CFArrayGetCount(ctAxes.get()) > 0) {
569-
info->fFlags |= SkAdvancedTypefaceMetrics::kMultiMaster_FontFlag;
569+
info->fFlags |= SkAdvancedTypefaceMetrics::kVariable_FontFlag;
570570
}
571571

572572
SkOTTableOS2_V4::Type fsType;

src/ports/SkTypeface_win_dw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ std::unique_ptr<SkAdvancedTypefaceMetrics> DWriteFontTypeface::onGetAdvancedMetr
495495
// but no means to indicate that such a typeface is a variation.
496496
AutoTDWriteTable<SkOTTableFontVariations> fvarTable(fDWriteFontFace.get());
497497
if (fvarTable.fExists) {
498-
info->fFlags |= SkAdvancedTypefaceMetrics::kMultiMaster_FontFlag;
498+
info->fFlags |= SkAdvancedTypefaceMetrics::kVariable_FontFlag;
499499
}
500500

501501
//There exist CJK fonts which set the IsFixedPitch and Monospace bits,

0 commit comments

Comments
 (0)