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

Unified Diff: gm/verttext2.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/verttext2.cpp
diff --git a/gm/verttext2.cpp b/gm/verttext2.cpp
index b0375eeb64e6dd2a9fa3dc126c9a4fb0331c43c4..9c0987e8096027afe089be27c722076c69b71a13 100644
--- a/gm/verttext2.cpp
+++ b/gm/verttext2.cpp
@@ -21,8 +21,8 @@ public:
VertText2GM() {
const int pointSize = 24;
textHeight = SkIntToScalar(pointSize);
- fProp = SkTypeface::CreateFromName("Helvetica", SkTypeface::kNormal);
- fMono = SkTypeface::CreateFromName("Courier New", SkTypeface::kNormal);
+ fProp = sk_tool_utils::portable_typeface("Helvetica", SkTypeface::kNormal);
+ fMono = sk_tool_utils::portable_typeface("Courier New", SkTypeface::kNormal);
}
virtual ~VertText2GM() {

Powered by Google App Engine
This is Rietveld 408576698