Skip to content

Conversation

TakWolf
Copy link

@TakWolf TakWolf commented Jun 12, 2025

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.

@serialexperimentsrio
Copy link
Owner

Really appreciate the effort in documenting everything so clearly, especially the live preview and release links. This will be a great reference, even if we don’t merge it directly. The Python build setup looks simple enough and could be worth adapting.

You're spot on about the line-height issue. I forgot to consider phonetic letters when making this font, so thanks for pointing it out! I’m going to experiment with your suggestion of reserving 3px at the top to mirror the descent.

@serialexperimentsrio serialexperimentsrio added the enhancement New feature or request label Jun 29, 2025
@serialexperimentsrio serialexperimentsrio self-assigned this Jun 29, 2025
@serialexperimentsrio serialexperimentsrio self-requested a review June 29, 2025 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants