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

Unified Diff: gm/colortype.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/colortype.cpp
diff --git a/gm/colortype.cpp b/gm/colortype.cpp
index 2774f3a5ff6ad4150305e9ea64e2874b5e76531d..2e346abe91850cdd7e8f2b51c63a6e8670004bba 100644
--- a/gm/colortype.cpp
+++ b/gm/colortype.cpp
@@ -26,8 +26,8 @@ public:
paint.setAntiAlias(true);
paint.setShader(s)->unref();
- SkTypeface* orig = SkTypeface::CreateFromName("Times",
- SkTypeface::kBold);
+ SkTypeface* orig = sk_tool_utils::portable_typeface("Times",
mtklein 2014/07/30 17:19:05 consider naming this create_portable_typeface() so
caryclark 2014/07/30 19:00:16 Done.
+ SkTypeface::kBold);
if (NULL == orig) {
orig = SkTypeface::RefDefault();
}

Powered by Google App Engine
This is Rietveld 408576698