Index: gm/fontcache.cpp |
diff --git a/gm/fontcache.cpp b/gm/fontcache.cpp |
index cb73e9137769ca2dce201816a0ef528a2b79843c..74ec18a4506c86a9b3192365b43f81d93f9150c5 100644 |
--- a/gm/fontcache.cpp |
+++ b/gm/fontcache.cpp |
@@ -59,8 +59,8 @@ protected: |
int typefaceCount = 0; |
for (size_t i = 0; i < SK_ARRAY_COUNT(gFamilyNames); ++i) { |
for (size_t j = 0; j < SK_ARRAY_COUNT(gStyles); ++j) { |
- fTypefaces[typefaceCount++] = SkTypeface::CreateFromName(gFamilyNames[i], |
- gStyles[j]); |
+ fTypefaces[typefaceCount++] = sk_tool_utils::create_portable_typeface(gFamilyNames[i], |
+ gStyles[j]); |
} |
} |
} |