Yeah, that's the problem, if you zoom in the images, you can notice that the text is all weird (blank squares appearing, blur, not at the same space, etc...). How do I initialize a font with a size? The only thing I see is "sftd_font *sftd_load_font_file(const char *pathname);", and this doesn't take any parameters referring to the size.
Print something on screen at the max size you need (you can print black on a black background if you dont want show it to the user).
The problem of the lib is that at the first print the code loads in a cache a texture of the fontset (i.e. a bitmap) rendered at the size of the first print and then next print uses this texture to get the rendered chars and copy them on screen scaled.
If the next print uses a smaller font, the GPU scaling gives a nice result, but using a larger font size, the zoomed bitmap results in a blurred image.
My fist workaround was to use different instances of the font (one for every size needed) but this waste memory. Printing the first time at the max size is a good solution.
Last edited by nop90,