I noticed the docs say that .png fonts are supported. I'm hoping I can get clarity on what this means exactly.
- Is the PNG font a recognized standard? Eg do multiple programs use the same format
- Is it just a row of characters in a specific order?
- Are only monospace fonts supported?
- Does it have to be 8px?
- Are there any examples?
Thanks!
In older versions, there was a fonts.dat
http://www.solarus-games.org/doc/1.3/quest_font_list_file.html
In the latest version, I don't know. Here you will find some explanations
http://www.solarus-games.org/doc/latest/quest_fonts.html (http://www.solarus-games.org/doc/latest/quest_fonts.html)
Quote from: alexgleason on October 24, 2018, 10:03:38 PM
Is the PNG font a recognized standard?
I don't believe so
QuoteIs it just a row of characters in a specific order?
Yes, 16 rows by 128 columns, supporting the first 2048 unicode characters.
QuoteAre only monospace fonts supported?
yes, all characters must have the same width and height.
QuoteDoes it have to be 8px?
no, the total image width is a multiple of 128 and total image height is a multiple of 16. The size of each character is thus fixed based on the size of the overall png.
QuoteAre there any examples?
yes, from the alttp resource pack: https://gitlab.com/solarus-games/solarus-alttp-pack/blob/master/data/fonts/alttp.png
Thanks a lot to you both!!