Repository navigation
Text: a font of the player's, and every letter on the same baseline - #111
Merged
Merged
Conversation
Game settings > Video > Text font takes a TrueType or OpenType file for a copy of the game. The launcher checks it is a font, copies it into its data folder (fonts/<disc id>) and passes it to the game as --font; Default goes back to Liberation Sans with Kaneda's HD text. MHForever-cli --font <file> | default does the same without the window. Both game programs (Freedom Unite and Freedom) take --font: sceLibFont measures and draws the text with that font, sharp at any resolution as the HD text is, and takes the characters it lacks from Liberation Sans and Noto Sans JP. Kaneda's glyphs, drawn for Liberation Sans, are left out with a font of the player's. Letters no longer sit a pixel high or low (the b of "Combine", the f of "Info"): the game places each glyph by the corner it works out from the bearings sceFontGetCharInfo reports, and the bitmap drawn at the pen's fraction of a pixel can start a pixel off that corner. Each glyph is now placed by its pen, so every letter rests on the baseline.
Merged
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A font of the player's for the game's text, in Freedom Unite and Freedom, and every letter on the same baseline.
Text font
.ttfor.otffile for that copy of the game; Default goes back to Liberation Sans with Kaneda's HD text.fonts/<disc id>, so moving the original changes nothing) and passes it to the game as--font.--font: sceLibFont measures and draws the text with that font, sharp at any resolution, and takes the characters it lacks from Liberation Sans (accents, symbols) and Noto Sans JP. Kaneda's glyphs, drawn for Liberation Sans, are left out with a font of the player's.MHForever-cli --font <file> | default [--disc <id>]does the same without the window.Straight letters
Letters such as the b of "Combine" or the f of "Info" sat a pixel high or low. The game places each glyph by the corner it works out from the bearings
sceFontGetCharInforeports, and the bitmap drawn at the pen's fraction of a pixel can start a pixel off that corner. Each glyph is now placed by its pen, so every letter rests on the baseline, with the default font and with any other.Tested
--font, text drawn with the chosen font.--fontset, rejected for a file that is not a font, game started with it (using verdana.ttfin game.log), back to default; the Text font row in the UI. Tested by the maintainer in the launcher.