Index: gm/pathreverse.cpp |
diff --git a/gm/pathreverse.cpp b/gm/pathreverse.cpp |
index 77687f4e4a03732ccea83daeff55e369916ff3fd..fd134041989ea76078d366b9ad7bc8439af7f948 100644 |
--- a/gm/pathreverse.cpp |
+++ b/gm/pathreverse.cpp |
@@ -52,8 +52,7 @@ static void test_rev(SkCanvas* canvas) { |
SkPaint paint; |
paint.setTextSize(SkIntToScalar(100)); |
- SkTypeface* hira = SkTypeface::CreateFromName("Hiragino Maru Gothic Pro", SkTypeface::kNormal); |
- SkSafeUnref(paint.setTypeface(hira)); |
+ sk_tool_utils::set_portable_typeface(&paint, "Hiragino Maru Gothic Pro"); |
path.reset(); |
paint.getTextPath("e", 1, 50, 50, &path); |
canvas->translate(0, 100); |
@@ -103,8 +102,7 @@ protected: |
SkPaint paint; |
paint.setTextSize(SkIntToScalar(100)); |
- SkTypeface* hira = SkTypeface::CreateFromName("Hiragino Maru Gothic Pro", SkTypeface::kNormal); |
- SkSafeUnref(paint.setTypeface(hira)); |
+ sk_tool_utils::set_portable_typeface(&paint, "Hiragino Maru Gothic Pro"); |
path.reset(); |
paint.getTextPath("e", 1, 50, 50, &path); |
canvas->translate(0, 100); |