(STB) WinRT/UWP can't deal with relative paths, so don't look for

osd-font.ttf
This commit is contained in:
twinaphex 2019-04-28 07:24:34 +02:00
parent 2aa0b74d55
commit 8784d21c74
2 changed files with 4 additions and 4 deletions

View File

@ -184,7 +184,7 @@ error:
static const char *font_renderer_stb_get_default_font(void)
{
static const char *paths[] = {
#if defined(_WIN32)
#if defined(_WIN32) && !defined(__WINRT__)
"C:\\Windows\\Fonts\\consola.ttf",
"C:\\Windows\\Fonts\\verdana.ttf",
#elif defined(__APPLE__)
@ -205,15 +205,15 @@ static const char *font_renderer_stb_get_default_font(void)
"vs0:data/external/font/pvf/k006004ds.ttf",
"vs0:data/external/font/pvf/n023055ms.ttf",
"vs0:data/external/font/pvf/n023055ts.ttf",
#else
#elif !defined(__WINRT__)
"/usr/share/fonts/TTF/DejaVuSansMono.ttf",
"/usr/share/fonts/TTF/DejaVuSans.ttf",
"/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf",
"/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf",
"/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf",
"/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf",
#endif
"osd-font.ttf",
#endif
NULL
};

View File

@ -306,8 +306,8 @@ static const char *font_renderer_stb_unicode_get_default_font(void)
"/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf",
"/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf",
"/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf",
#endif
"osd-font.ttf",
#endif
NULL
};