HarpNetStudios / cardboard

An in-house engine for some of our games, like Carmine Impact!
https://harpnetstudios.com
27 stars 6 forks source link

Add support for FreeType #12

Open yellowberryHN opened 3 years ago

yellowberryHN commented 3 years ago

This is an issue due to 2 factors:

The way I propose implementing this is to implement the SDL2_ttf extension. That way, a traditional .TTF font can be used by the game to render all text. This will all improve localization efforts, because with the current system, we would need an incredibly massive amount of bitmap font sheets to cover Asian languages.

Blueberryy commented 3 years ago

This game engine definitely will need a Japanese localization.

yellowberryHN commented 3 years ago

As of https://github.com/HarpNetStudios/cardboard/commit/ed37b24cd2cf5469184de0929760c03a9020d3c9 we have basic FreeType rendering code, courtesy of https://github.com/ACBob/Bube. Still a work in progress, hope to be able to contribute back to that project.

yellowberryHN commented 3 years ago

The code previously implemented has been temporarily removed, as it has caused conflicts. It will be merged back into a future branch at a later date. I simply do not have the time to fix said conflicts at the moment.