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

Unified Diff: gm/colorwheel.cpp

Issue 769343002: use portable fonts (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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/colorwheel.cpp
diff --git a/gm/colorwheel.cpp b/gm/colorwheel.cpp
index efc40131571831b23504428ee0f23e09373bee14..93af361720d18573a7621542854c474890d2512c 100644
--- a/gm/colorwheel.cpp
+++ b/gm/colorwheel.cpp
@@ -9,6 +9,7 @@
#include "SkData.h"
#include "SkDecodingImageGenerator.h"
#include "gm.h"
+#include "sk_tool_utils.h"
static void checkerboard(
SkCanvas* canvas, int w, int h, int size, SkColor c1, SkColor c2) {
@@ -58,7 +59,7 @@ DEF_SIMPLE_GM(colorwheel, canvas, 256, 256) {
DEF_SIMPLE_GM(colorwheelnative, canvas, 128, 28) {
SkPaint paint;
- paint.setTypeface(SkTypeface::CreateFromName("Arial", SkTypeface::kBold));
+ sk_tool_utils::set_portable_typeface(&paint, NULL, SkTypeface::kBold);
paint.setTextSize(18.0f);
canvas->clear(SK_ColorLTGRAY);
« 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