File diff r25706:50b894f19d99 → r25707:226494aad20a
src/os/unix/font_unix.cpp
Show inline comments
 
@@ -48,16 +48,16 @@ FT_Error GetFontByFaceName(const char *f
 
			while (*font_style == ' ' || *font_style == '\t') font_style++;
 
		}
 

	
 
		/* Resolve the name and populate the information structure */
 
		pat = FcNameParse((FcChar8 *)font_family);
 
		if (font_style != nullptr) FcPatternAddString(pat, FC_STYLE, (FcChar8 *)font_style);
 
		FcConfigSubstitute(0, pat, FcMatchPattern);
 
		FcConfigSubstitute(nullptr, pat, FcMatchPattern);
 
		FcDefaultSubstitute(pat);
 
		fs = FcFontSetCreate();
 
		match = FcFontMatch(0, pat, &result);
 
		match = FcFontMatch(nullptr, pat, &result);
 

	
 
		if (fs != nullptr && match != nullptr) {
 
			int i;
 
			FcChar8 *family;
 
			FcChar8 *style;
 
			FcChar8 *file;