tsoding / olive.c

Simple 2D Graphics Library for C
https://tsoding.github.io/olive.c/
MIT License
1.86k stars 105 forks source link

Added a simple routine to load a Olivec_Font dynamically #27

Open uri-nyx opened 1 year ago

uri-nyx commented 1 year ago

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 _OlivecFont. I also changed all font-related data to unsigned char instead of char.