1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-04 11:37:55 +00:00

improvement to fontconfig support

This commit is contained in:
Zeno Rogue
2023-05-15 19:33:32 +02:00
parent c03e9cfeb4
commit 24cd670de0
2 changed files with 26 additions and 13 deletions

View File

@@ -175,7 +175,14 @@ int arg::readCommon() {
else if(argis("-nogui")) { PHASE(1); noGUI = true; }
#ifndef EMSCRIPTEN
#if CAP_SDL
else if(argis("-font")) { PHASE(1); shift(); fontpath = args(); }
else if(argis("-font")) { PHASE(1); shift(); fontpath = args();
#ifdef FONTCONFIG
font_to_find = "";
#endif
}
#ifdef FONTCONFIG
else if(argis("-find-font")) { PHASE(1); shift(); font_to_find = args(); }
#endif
#endif
#endif