Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: src/core/SkTypeface.cpp

Issue 2246903002: SkPDF: SkPDFFont class changes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-08-15 (Monday) 21:25:47 EDT Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkAdvancedTypefaceMetrics.h ('k') | src/pdf/SkPDFFont.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkTypeface.cpp
diff --git a/src/core/SkTypeface.cpp b/src/core/SkTypeface.cpp
index 24e1a67864ebbcb00880b1a60131b8b98a8ea3e8..cda9b5ce5e57f021a8dd8d905e29af86c0cb4d13 100644
--- a/src/core/SkTypeface.cpp
+++ b/src/core/SkTypeface.cpp
@@ -298,14 +298,10 @@ SkAdvancedTypefaceMetrics* SkTypeface::getAdvancedTypefaceMetrics(
(os2table.version.v2.fsType.field.Restricted &&
!(os2table.version.v2.fsType.field.PreviewPrint ||
os2table.version.v2.fsType.field.Editable))) {
- result->fFlags = SkTBitOr<SkAdvancedTypefaceMetrics::FontFlags>(
- result->fFlags,
- SkAdvancedTypefaceMetrics::kNotEmbeddable_FontFlag);
+ result->fFlags |= SkAdvancedTypefaceMetrics::kNotEmbeddable_FontFlag;
}
if (os2table.version.v2.fsType.field.NoSubsetting) {
- result->fFlags = SkTBitOr<SkAdvancedTypefaceMetrics::FontFlags>(
- result->fFlags,
- SkAdvancedTypefaceMetrics::kNotSubsettable_FontFlag);
+ result->fFlags |= SkAdvancedTypefaceMetrics::kNotSubsettable_FontFlag;
}
}
}
« no previous file with comments | « src/core/SkAdvancedTypefaceMetrics.h ('k') | src/pdf/SkPDFFont.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698