diff options
author | 2016-03-16 20:10:22 +0100 | |
---|---|---|
committer | 2016-03-16 20:11:41 +0100 | |
commit | 3db357bff45784d675acc0f85aaca8c73b52858e (patch) | |
tree | b02898d9b58ff2ddc7ef5e1fd73dfbc9d29f47e7 | |
parent | 8437514d2cf5ebc5da08e53783e91702f46888fb (diff) |
A lot of ttf fonts (including C/J/K fonts like unifont) do not have an
type attribute "Regular". This fix will load the first font found if no
"bold" "bold italic" "italic" or "regular" attribute was found.
[Couriersud]
-rw-r--r-- | src/osd/modules/font/font_sdl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/osd/modules/font/font_sdl.cpp b/src/osd/modules/font/font_sdl.cpp index 2e7d875ede4..47960b02f55 100644 --- a/src/osd/modules/font/font_sdl.cpp +++ b/src/osd/modules/font/font_sdl.cpp @@ -266,7 +266,8 @@ osd_font_sdl::TTF_Font_ptr osd_font_sdl::search_font_config(std::string const &n { pat.reset(FcPatternCreate()); FcPatternAddString(pat.get(), FC_FAMILY, (const FcChar8 *)name.c_str()); - FcPatternAddString(pat.get(), FC_STYLE, (const FcChar8 *)"Regular"); + //Quite a lot of fonts don't have a "Regular" font type attribute + //FcPatternAddString(pat.get(), FC_STYLE, (const FcChar8 *)"Regular"); FcPatternAddString(pat.get(), FC_FONTFORMAT, (const FcChar8 *)"TrueType"); fontset.reset(FcFontList(config, pat.get(), os.get())); |