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

Unified Diff: gm/bitmapcopy.cpp

Issue 348323003: use platform-independent font for gm (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add include tools for skimage Created 6 years, 6 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 | « gm/arithmode.cpp ('k') | gm/bitmapfilters.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/bitmapcopy.cpp
diff --git a/gm/bitmapcopy.cpp b/gm/bitmapcopy.cpp
index eaad8d0114200af05633561497fb6f6e338291fd..74505d911d9d09c537c706d4f5ce29119d1ac617 100644
--- a/gm/bitmapcopy.cpp
+++ b/gm/bitmapcopy.cpp
@@ -77,6 +77,8 @@ protected:
canvas->clear(0xFFDDDDDD);
paint.setAntiAlias(true);
+ sk_tool_utils::set_portable_typeface(&paint);
+
SkScalar width = SkIntToScalar(40);
SkScalar height = SkIntToScalar(40);
if (paint.getFontSpacing() > height) {
« no previous file with comments | « gm/arithmode.cpp ('k') | gm/bitmapfilters.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698