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

Unified Diff: gm/typeface.cpp

Issue 407183003: add portable and canonical font support for DM (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix linux-exposed bugs Created 6 years, 5 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
Index: gm/typeface.cpp
diff --git a/gm/typeface.cpp b/gm/typeface.cpp
index f2c56a591ed14a0ed5ea0277d7698faf8c87f817..2ed61ac965a5fee70b01d751b667fd7ad2cb0492 100644
--- a/gm/typeface.cpp
+++ b/gm/typeface.cpp
@@ -24,7 +24,7 @@ public:
TypefaceGM() {
fFaces = new SkTypeface*[SK_ARRAY_COUNT(gFaces)];
for (size_t i = 0; i < SK_ARRAY_COUNT(gFaces); i++) {
- fFaces[i] = SkTypeface::CreateFromName(gFaces[i], SkTypeface::kNormal);
+ fFaces[i] = sk_tool_utils::portable_typeface(gFaces[i], SkTypeface::kNormal);
}
}
@@ -159,8 +159,8 @@ class TypefaceStylesGM : public skiagm::GM {
public:
TypefaceStylesGM(bool applyKerning) : fApplyKerning(applyKerning) {
for (int i = 0; i < gFaceStylesCount; i++) {
- fFaces[i] = SkTypeface::CreateFromName(gFaceStyles[i].fName,
- gFaceStyles[i].fStyle);
+ fFaces[i] = sk_tool_utils::portable_typeface(gFaceStyles[i].fName,
+ gFaceStyles[i].fStyle);
}
}

Powered by Google App Engine
This is Rietveld 408576698