Simplify workflow #1
Open
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.
This PR is for reference only.
I'm not sure if an equivalent build has been implemented, may need to check the details.
Run
python -m tools.build
to build fonts and pack release zip and update www.You can quickly preview the effect using www/index.html
Two actions to do publish Pages and Release,
The effect can be referred to:
https://takwolf-deprecated.github.io/bitroot/
https://github.com/TakWolf-Deprecated/bitroot/releases/tag/test-0.0.0
Motivation
In the original workflow, the design of glyphs were completed in PNG, PixelFont only as a build tool, then we can optimize it. The only issue is that we have introduced Python, which adds a bit of complexity.
However, building scripts is actually quite simple and straightforward.
Bitmap Mapping
The current mapping scheme is based on existing glyphs images.
I think there can be a simpler solution, refer to
https://github.com/TakWolf/retro-pixel-font/tree/master/assets/glyphs/arcade/0000-007F%20Basic%20Latin
Line-Height Issue
The current ascent cause uppercase letters not actually being centered on the horizontal line. I think there should be 3px at the top of uppercase letters (the same as' descent '), This space can also be reserved for phonetic letters (like ÀÁÂÃÄÅ). This is a common practice.