Index: gm/gammatext.cpp |
diff --git a/gm/gammatext.cpp b/gm/gammatext.cpp |
index f10680e5674eb90554709d7151ce740c6618668a..b6a87f4362f5c90575b8d0aea9e04c922b02185b 100644 |
--- a/gm/gammatext.cpp |
+++ b/gm/gammatext.cpp |
@@ -26,7 +26,7 @@ static SkShader* make_heatGradient(const SkPoint pts[2]) { |
} |
static bool setFont(SkPaint* paint, const char name[]) { |
- SkTypeface* tf = SkTypeface::CreateFromName(name, SkTypeface::kNormal); |
+ SkTypeface* tf = sk_tool_utils::portable_typeface(name, SkTypeface::kNormal); |
if (tf) { |
paint->setTypeface(tf)->unref(); |
return true; |