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

Unified Diff: gm/fontcache.cpp

Issue 1245123006: make fontcache textblob gm portable (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | gm/textblob.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/fontcache.cpp
diff --git a/gm/fontcache.cpp b/gm/fontcache.cpp
index 5f1141e1e9053271353df11a8c07811bfb59f51d..eb841b0d8a8c0b2bb158348836ce2c34ec5cda4f 100644
--- a/gm/fontcache.cpp
+++ b/gm/fontcache.cpp
@@ -40,8 +40,8 @@ protected:
}
void onOnceBeforeDraw() override {
- fTypefaces[0] = sk_tool_utils::create_portable_typeface("serif", SkTypeface::kItalic);
- fTypefaces[1] = sk_tool_utils::create_portable_typeface("sans-serif", SkTypeface::kItalic);
+ fTypefaces[0] = sk_tool_utils::create_portable_typeface_always("serif", SkTypeface::kItalic);
+ fTypefaces[1] = sk_tool_utils::create_portable_typeface_always("sans-serif", SkTypeface::kItalic);
}
void onDraw(SkCanvas* canvas) override {
« no previous file with comments | « no previous file | gm/textblob.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698