From ab792828a57b663841dacffda9c2163e5e45d934 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Tue, 23 Apr 2013 16:35:09 +0000 Subject: its ok if there is no family name in the pattern for fontconfig, for fc will interpret an empty string as looking for the default (which is our intent). git-svn-id: http://skia.googlecode.com/svn/trunk@8830 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/ports/SkFontConfigInterface_direct.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ports/SkFontConfigInterface_direct.cpp b/src/ports/SkFontConfigInterface_direct.cpp index 3663794bc5..c93cacd507 100644 --- a/src/ports/SkFontConfigInterface_direct.cpp +++ b/src/ports/SkFontConfigInterface_direct.cpp @@ -488,7 +488,8 @@ bool SkFontConfigInterfaceDirect::matchFamilyName(const char familyName[], const char* post_config_family = get_name(pattern, FC_FAMILY); if (!post_config_family) { - return false; + // we can just continue with an empty name, e.g. default font + post_config_family = ""; } FcResult result; -- cgit v1.2.3