Chromium Code Reviews| Index: gm/fontcache.cpp |
| diff --git a/gm/fontcache.cpp b/gm/fontcache.cpp |
| index cb73e9137769ca2dce201816a0ef528a2b79843c..7a469e2165013091e347d7fd44aae919af3442cb 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::portable_typeface(gFamilyNames[i], |
| + gStyles[j]); |
| } |
| } |
| } |