ZillaLib icon indicating copy to clipboard operation
ZillaLib copied to clipboard

Draw better quality font?

Open manuel76413 opened this issue 3 years ago • 1 comments
trafficstars

How to draw text with better quality, clear and antialiasing, like Konva library :-(

manuel76413 avatar Jan 07 '22 13:01 manuel76413

The font rendering quality is what it is. Googling "Konva" sounds like it is based on Javascript/HTML5 Canvas element, meaning it uses the font rendering of the web browser, which is of course very nice but browsers are very large pieces of software. ZillaLib aims to have very small output sizes so including a large library just for one feature is not possible. Freetype for example is a popular font rendering library, but it alone is larger than most games made with ZillaLib. You might be able to include Freetype in your application, or replace the font rendering of ZillaLib with it. I have never tried that.

Pull requests with improvement to the font rendering are certainly welcome :-)

schellingb avatar Jan 07 '22 14:01 schellingb