Index: Source/platform/fonts/skia/FontCustomPlatformDataSkia.cpp |
diff --git a/Source/platform/fonts/skia/FontCustomPlatformDataSkia.cpp b/Source/platform/fonts/skia/FontCustomPlatformDataSkia.cpp |
index ecf42ef0664ed88c7ffd2acb51f92f9dfa5d5056..a9e8a85bbca831d22465d35a461fe7ebf181f660 100644 |
--- a/Source/platform/fonts/skia/FontCustomPlatformDataSkia.cpp |
+++ b/Source/platform/fonts/skia/FontCustomPlatformDataSkia.cpp |
@@ -73,7 +73,7 @@ FontPlatformData FontCustomPlatformData::fontPlatformData(float size, bool bold, |
if (syntheticItalic) |
style |= SkTypeface::kItalic; |
- RefPtr<SkTypeface> typeface = adoptRef(SkTypeface::CreateFromName(name.c_str(), static_cast<SkTypeface::Style>(style))); |
+ RefPtr<SkTypeface> typeface = adoptRef(FontCache::fontCache()->fontManager()->legacyCreateTypeface(name.c_str(), static_cast<SkTypeface::Style>(style))); |
syntheticBold = false; |
syntheticItalic = false; |
return FontPlatformData(typeface.release(), "", size, syntheticBold, syntheticItalic, orientation); |