Make it easier to change the bundled font. #136
No reviewers
Labels
No Label
RGSS accuracy
bug
compilation
discussion
documentation
duplicate
enhancement
invalid
performance issue
port request
question
ruby incompatibility
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: MapleShrine/mkxp#136
Loading…
Reference in New Issue
No description provided.
Delete Branch "mook/bundled-font-config"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This makes it easier to play CJK games, since the embedded font must have the glyphs necessary to display the game text. This however does not change the default, so liberation is still used in the default setting. Because needing to have the file under
assets/
is unusual, it's listed as an advanced configuration option.The qmake portion is untested, but should hopefully not break the build.
See also #135
It unfortunately does. Now that `#include "liberation.ttf.xxd" isn't verbatim in the file anymore, qmake doesn't recognize it as a dependency and omits the Makefile entry to generate it.
I'll see how to get around that when I have a bit more time.
SDL_ttf seems to not care about the file extension enough that it accepted
msgothic.ttc
renamed asmsgothic.ttf
:)Perhaps a better way to go would be to support the default font name thing better, such that for Japanese games the empty string actually falls back to something useful? That of course needs my in-progress branch (not pushed yet) to use fontconfig to pick up system fonts... and I have no idea if that is compatible with Windows/OSX at all.
Right, SDL_ttf, like the other SDL support libs, doesn't actually need the extension, although it might look at it to guess which decoder to try first.
What I'm talking about is that a user having a file that doesn't have the ttf extension but is still supported by SDL_ttf, is forced to put a ".ttf" at the end for no reason.
This is really just a problem with RGSS1 games, because in 2 and up games already ship their font dependencies. So to play this type of game, you just add a font to the game folder and setup a fontSub for "Arial".
Using fontconfig is not really an option as it is Linux-only, while mkxp is a cross-platform project.
Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Forgejo.