| Index: skia/ports/SkFontHost_fontconfig.cpp
|
| diff --git a/skia/ports/SkFontHost_fontconfig.cpp b/skia/ports/SkFontHost_fontconfig.cpp
|
| index cb95a60161418112dc67e19e36e6560a31fd0dbf..f36bb2e50b3016c745c3dc31b6add4cb0848a682 100644
|
| --- a/skia/ports/SkFontHost_fontconfig.cpp
|
| +++ b/skia/ports/SkFontHost_fontconfig.cpp
|
| @@ -278,13 +278,8 @@ void SkFontHost::Serialize(const SkTypeface*, SkWStream*) {
|
|
|
| SkScalerContext* SkFontHost::CreateFallbackScalerContext
|
| (const SkScalerContext::Rec& rec) {
|
| - FcPattern* pattern = FcPatternCreate();
|
| - FcConfigSubstitute(0, pattern, FcMatchPattern);
|
| - FcDefaultSubstitute(pattern);
|
| -
|
| - FcResult result;
|
| - FcPattern* match = FcFontMatch(0, pattern, &result);
|
| - FcPatternDestroy(pattern);
|
| + FcPattern* match = FontMatch(FC_FAMILY, FcTypeString, "serif",
|
| + NULL);
|
|
|
| // This will fail when we have no fonts on the system.
|
| SkASSERT(match);
|
|
|