allegroflare / allegro_flare

Application toolkit for Allegro 5
https://clubcatt.com/allegroflare
MIT License
35 stars 6 forks source link

Consider Embedding Fonts Into AllegroFlare for Streamlined Usability #195

Open MarkOates opened 2 years ago

MarkOates commented 2 years ago

Loading fonts directly from assets can require a bit of clunky typing, file-finding, and ensuring the assets are included in the distribution. It might be nice to have several TTF fonts as binary in source to load and use.

Some nice fonts:

Barlow: https://fonts.google.com/specimen/Barlow Roboto Slab: https://fonts.google.com/specimen/Roboto+Slab

Examples of the xxd command-line tool to convert a binary file into a C char array:

https://stackoverflow.com/questions/45802537/how-to-embed-font-and-other-image-files-when-using-graphic-libraries-like-sfml