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

Unified Diff: gm/glyph_pos.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/glyph_pos.cpp
diff --git a/gm/glyph_pos.cpp b/gm/glyph_pos.cpp
index b0451016accaa71bc13a2d61b4d3db5a09cc212b..8d5064c9fd48c8b440dfaee45e4b3f834a4f20d6 100644
--- a/gm/glyph_pos.cpp
+++ b/gm/glyph_pos.cpp
@@ -52,7 +52,7 @@ protected:
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
if (!fProp) {
- fProp.reset(SkTypeface::CreateFromName("Helvetica", SkTypeface::kNormal));
+ fProp.reset(sk_tool_utils::portable_typeface("Helvetica", SkTypeface::kNormal));
}
// There's a black pixel at 40, 40 for reference.

Powered by Google App Engine
This is Rietveld 408576698