SDL_ttf Systemschriftart
-
27-10-2019 - |
Frage
Gibt es eine Möglichkeit, die Standard-System-Schriftart mit SDL_TFF zu verwenden, ohne plattformspezifischen Code zu schreiben? Derzeit verwende ich nur eines der GNU Freefont des , aber ich möchte in der Lage sein, das zu verwenden, Standardsystemschriftart.
Lösung
Well, what is "default system font"? I think all modern OSes allow users to customise fonts, so you need to query it somehow, if you want to use exactly that. If you don't want to write platform-specific code and want to avoid non-portable assumptions, then providing your own fonts is a correct thing to do.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow