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

Unified Diff: gm/textblobshader.cpp

Issue 1263593004: gm missed portable text in textblobshader (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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/textblobshader.cpp
diff --git a/gm/textblobshader.cpp b/gm/textblobshader.cpp
index bd5ea221d125fb4a1cca1484f0db764403031659..3b2a9a5167f64cba5285e3cef6b16417497f380c 100644
--- a/gm/textblobshader.cpp
+++ b/gm/textblobshader.cpp
@@ -20,6 +20,7 @@ class TextBlobShaderGM : public skiagm::GM {
public:
TextBlobShaderGM(const char* txt) {
SkPaint p;
+ sk_tool_utils::set_portable_typeface(&p);
size_t txtLen = strlen(txt);
fGlyphs.append(p.textToGlyphs(txt, txtLen, NULL));
p.textToGlyphs(txt, txtLen, fGlyphs.begin());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698