mirror of
https://github.com/holub/mame
synced 2025-07-04 01:18:59 +03:00
Fix linux font loading. [Couriersud]
This commit is contained in:
parent
1ed5e0df43
commit
0f3bc4ca99
@ -249,7 +249,7 @@ osd_font_sdl::TTF_Font_ptr osd_font_sdl::search_font_config(std::string const &n
|
|||||||
for (int i = 0; (i < fontset->nfont) && !font; i++)
|
for (int i = 0; (i < fontset->nfont) && !font; i++)
|
||||||
{
|
{
|
||||||
FcValue val;
|
FcValue val;
|
||||||
if ((FcPatternGet(fontset->fonts[i], FC_FILE, 0, &val) == FcResultMatch) && (val.type != FcTypeString))
|
if ((FcPatternGet(fontset->fonts[i], FC_FILE, 0, &val) == FcResultMatch) && (val.type == FcTypeString))
|
||||||
{
|
{
|
||||||
osd_printf_verbose("Matching font: %s\n", val.u.s);
|
osd_printf_verbose("Matching font: %s\n", val.u.s);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user