Index: gm/strokefill.cpp |
diff --git a/gm/strokefill.cpp b/gm/strokefill.cpp |
index 5f943df6ce2caf89277afe6cfef0bf8c1150d2d8..4566eea9ada502fdac5a1b89ff39f411fd408eca 100644 |
--- a/gm/strokefill.cpp |
+++ b/gm/strokefill.cpp |
@@ -48,12 +48,10 @@ protected: |
paint.setTextSize(SkIntToScalar(100)); |
paint.setStrokeWidth(SkIntToScalar(5)); |
- SkTypeface* face = SkTypeface::CreateFromName("Papyrus", SkTypeface::kNormal); |
- SkSafeUnref(paint.setTypeface(face)); |
+ sk_tool_utils::set_portable_typeface(&paint, "Papyrus"); |
show_bold(canvas, "Hello", 5, x, y, paint); |
- face = SkTypeface::CreateFromName("Hiragino Maru Gothic Pro", SkTypeface::kNormal); |
- SkSafeUnref(paint.setTypeface(face)); |
+ sk_tool_utils::set_portable_typeface(&paint, "Hiragino Maru Gothic Pro"); |
const unsigned char hyphen[] = { 0xE3, 0x83, 0xBC }; |
show_bold(canvas, hyphen, SK_ARRAY_COUNT(hyphen), x + SkIntToScalar(300), y, paint); |