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

question: Font as byte arrays? #62

Open
WhyNotHugo opened this issue Feb 21, 2023 · 2 comments
Open

question: Font as byte arrays? #62

WhyNotHugo opened this issue Feb 21, 2023 · 2 comments

Comments

@WhyNotHugo
Copy link

Hi, I'm writing on very basic image generation, and want to render this font without using a font-parsing library and all that huge tree of dependencies.

Due to it's pixel-based nature, I'd want just byte arrays for each letter. Basically like this JSON from monocraft.

Do you think it's possible to export scientifica into something like this that can be converted into a byte array at build-time?

@NiLuJe
Copy link

NiLuJe commented Feb 21, 2023

This is (sort of) the way I use it in FBInk (c.f., #33 (comment)).

I whipped up a quick'n dirty Python script that mangles BDF (well, HEX, via gbdfed) fonts into a format suitable for a renderer based on font8x8 ;).

@WhyNotHugo
Copy link
Author

Oh, that's very useful! The Pythons script is a very handy entry point, but also FBInk looks pretty useful for a future project I have in mind!

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

2 participants