Open MarkOates opened 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:
xxd
https://stackoverflow.com/questions/45802537/how-to-embed-font-and-other-image-files-when-using-graphic-libraries-like-sfml
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