forked from Ancurio/mkxp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make it easier to change the bundled font.
This makes it easier to play CJK games, since the embedded font must have the glyphs necessary to display the game text. The qmake portion is untested, but should hopefully not break the build. See also Ancurio#135
- Loading branch information
Showing
4 changed files
with
15 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
#include "liberation.ttf.xxd" | ||
#define BUNDLED_FONT_NAME BUNDLED_FONT.ttf.xxd | ||
#define STRINGIFY(x) #x | ||
#define INCLUDE_FILE(x) STRINGIFY(x) | ||
#include INCLUDE_FILE(BUNDLED_FONT_NAME) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I don't feel very strongly about hardcoding the
assets/
part, but forcing a .ttf extension feels wrong, since that is not the only type supported by SDL_ttf (and more types might be supported in the future).