Index: core/fxge/skia/fx_skia_device.cpp |
diff --git a/core/fxge/skia/fx_skia_device.cpp b/core/fxge/skia/fx_skia_device.cpp |
index 745c9b50fd7f05a292800e9038ad2ca12f96fb6c..e61dda68d4ee1a8ea06e0743e50da0e73d60adb4 100644 |
--- a/core/fxge/skia/fx_skia_device.cpp |
+++ b/core/fxge/skia/fx_skia_device.cpp |
@@ -320,8 +320,7 @@ FX_BOOL CFX_SkiaDeviceDriver::DrawDeviceText(int nChars, |
uint32_t color, |
int alpha_flag, |
void* pIccTransform) { |
- SkAutoTUnref<SkTypeface> typeface(SkTypeface::CreateFromStream( |
- new SkMemoryStream(pFont->GetFontData(), pFont->GetSize()))); |
+ CFX_TypeFace* typeface = pCache->GetDeviceCache(pFont); |
SkPaint paint; |
paint.setAntiAlias(true); |
paint.setColor(color); |