Skip to content

Commit

Permalink
(UWP) Don't try to access C:\Windows\Fonts
Browse files Browse the repository at this point in the history
It's going to fail anyway
  • Loading branch information
krzys-h committed Jan 6, 2019
1 parent dcdcc93 commit ced5af9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gfx/drivers_font_renderer/stb_unicode.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ static const char *font_renderer_stb_unicode_get_default_font(void)
return "";
#else
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__)
Expand All @@ -283,7 +283,7 @@ static const char *font_renderer_stb_unicode_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",
Expand Down

0 comments on commit ced5af9

Please sign in to comment.