Commits

Akira TAGOH committed dfeb68d

Implement code for localized_font_name flag

This requires fontconfig > 2.9.0 to get it working properly

  • Participants
  • Parent commits 5584abd

Comments (0)

Files changed (1)

libeasyfc/ezfc-font.c

 		FcLangSetAdd(ls, (const FcChar8 *)language);
 		FcPatternAddLangSet(pat, FC_LANG, ls);
 	}
+	if (!localized_font_name)
+		FcPatternAddString(pat, FC_NAMELANG, (const FcChar8 *)"en");
 	os = FcObjectSetBuild(FC_FAMILY, FC_FILE, FC_INDEX, FC_SPACING, NULL);
 	fs = FcFontList(NULL, pat, os);
 	FcObjectSetDestroy(os);