Repository navigation
HD text: Kaneda's glyph sheets shipped, loaded in the background - #107
Merged
Merged
Conversation
Kaneda drew every character of the font at 8 times its size, a glyph sheet per block of 256 code points (Latin with accents, stars, Japanese punctuation, kana, kanji, full-width forms). They ship in fonts/hd-text/, saved as greyscale (lossless, the grey is the coverage: 27 MB for the 89 sheets). A sheet was decoded on the drawing thread and kept whole as RGBA (64 MB each at 8x). Now it is decoded on a thread of its own when a glyph of its block is first wanted, straight to one byte a texel (decode_coverage), one at a time; the font draws the glyph meanwhile, and the text pages are drawn again once it arrives. Three stay decoded, and the glyphs taken from them are kept on their own, cut to their boxes. Japanese character select: 330 MB at most with the sheets, against 255 MB drawn from the font alone.
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.
Summary
Kaneda's glyph sheets ship with MHForever: every character of the font at 8 times its size, one sheet per block of 256 code points (Latin with accents, stars, Japanese punctuation, kana, kanji, full-width forms), in
fonts/hd-text/.decode_coverage), one at a time. The font draws the glyph meanwhile, and the text pages are drawn again once the sheet arrives.assets/hd-text/whole; credits updated.Testing