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

Added a simple routine to load a Olivec_Font dynamically #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

uri-nyx
Copy link

@uri-nyx uri-nyx commented Mar 17, 2023

I didn't notice the tools to convert png to a font header or the pull request #25 until I finished implementing this. I add this here in case it is useful.

I implemented a simple routine that takes a byte buffer and generates a dynamically allocated Olivec_Font. I also changed all font-related data to unsigned char instead of char.

…r of bytes (didn't notice png2c nor font2c...) and made all dealings with glyphs unsigned chars
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

Successfully merging this pull request may close these issues.

1 participant