Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

font8x8 suggestion / request #14

Open
benstigsen opened this issue Oct 24, 2022 · 0 comments
Open

font8x8 suggestion / request #14

benstigsen opened this issue Oct 24, 2022 · 0 comments

Comments

@benstigsen
Copy link

benstigsen commented Oct 24, 2022

The in-built font could become about 1/8th the size, by using a system like font8x8 does.

Instead of having a font that looks like so:

0, 0, 0, 1, 1, 0, 0, 0
0, 0, 1, 0, 0, 1, 0, 0
0, 0, 1, 0, 0, 1, 0, 0
0, 0, 1, 1, 1, 1, 0, 0
0, 0, 1, 0, 0, 1, 0, 0
0, 0, 1, 0, 0, 1, 0, 0
0, 0, 1, 0, 0, 1, 0, 0
0, 0, 1, 0, 0, 1, 0, 0

It could look like so:

0b00011000,
0b00100100,
0b00100100,
0b00111100,
0b00100100,
0b00100100,
0b00100100,
0b00100100,

Only being 8 bytes instead of 64.

I've used this system myself and it works really well for having small fonts, which are still easy to process, since it only requires a little amount of bitshifting.
I have my own function from a little engine, which draws some multiline text, while using 8x8 bitfonts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant