I want to get back to my CoronaSDK project, but I was always stumbling a number of problems. One, which was particularly difficult, was how difficult (impossible) it was to handle Bitmap / Vector fonts properly. I see in Odin’s Protectors that they are using some form of dynamic custom fonts and I’m wondering how they did that and what the general status of font handling is in Corona right now. - Sorry for the broad question.
You can use bitmap fonts, but to do so relies upon you generating the fonts using a tool and then using an external bitmap font library to draw text with them.
Corona doesn’t supported bitmap fonts directly.
I’d have to dig, but I’m sure there are two or three different libraries available out there. I’d google and search github directly.
-Ed
Hi.
I do have a plugin (based on stb_truetype) geared toward the “generating the fonts using a tool … draw text with them” part. It should be accessible but I’ve been holding back on listing it until I’d shored up the docs and put together a less bare-bones sample, ideally incorporating some of the libraries Ed mentioned. (I’d been hoping to collaborate with somebody a bit on the latter, but he might have gotten busy.) This might be a little more low-level than what you’re after, though.
I use FontManager to draw Bitmap text in Corona and BmGlyph to create the fonts.
https://devilsquid.com/bitmap-fonts-a-step-by-step-guide/
You can use bitmap fonts, but to do so relies upon you generating the fonts using a tool and then using an external bitmap font library to draw text with them.
Corona doesn’t supported bitmap fonts directly.
I’d have to dig, but I’m sure there are two or three different libraries available out there. I’d google and search github directly.
-Ed
Hi.
I do have a plugin (based on stb_truetype) geared toward the “generating the fonts using a tool … draw text with them” part. It should be accessible but I’ve been holding back on listing it until I’d shored up the docs and put together a less bare-bones sample, ideally incorporating some of the libraries Ed mentioned. (I’d been hoping to collaborate with somebody a bit on the latter, but he might have gotten busy.) This might be a little more low-level than what you’re after, though.
I use FontManager to draw Bitmap text in Corona and BmGlyph to create the fonts.
https://devilsquid.com/bitmap-fonts-a-step-by-step-guide/