1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-13 15:56:00 +00:00

font system redesigned, font selection

This commit is contained in:
Zeno Rogue
2024-07-10 00:03:00 +02:00
parent 92d7eafcc3
commit 6bbd57ecbe
5 changed files with 128 additions and 67 deletions

View File

@@ -172,14 +172,7 @@ 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();
#ifdef FONTCONFIG
font_to_find = "";
#endif
}
#ifdef FONTCONFIG
else if(argis("-find-font")) { PHASE(1); shift(); font_to_find = args(); }
#endif
else if(argis("-font")) { PHASE(1); shift(); font_id = isize(font_filenames); font_filenames.push_back(args()); font_names.push_back({args(), "commandline"}); }
#endif
#endif