Index: gm/fontscaler.cpp |
diff --git a/gm/fontscaler.cpp b/gm/fontscaler.cpp |
index 8a97e6997064b03ff343e31a21db5c18c134468f..8aef8f0ebe37798099dc48083b131731ccaa0b74 100644 |
--- a/gm/fontscaler.cpp |
+++ b/gm/fontscaler.cpp |
@@ -47,7 +47,7 @@ protected: |
//With freetype the default (normal hinting) can be really ugly. |
//Most distros now set slight (vertical hinting only) in any event. |
paint.setHinting(SkPaint::kSlight_Hinting); |
- SkSafeUnref(paint.setTypeface(SkTypeface::CreateFromName("Times Roman", SkTypeface::kNormal))); |
+ sk_tool_utils::set_portable_typeface(&paint, "Times Roman", SkTypeface::kNormal); |
const char* text = "Hamburgefons ooo mmm"; |
const size_t textLen = strlen(text); |