rendering simple/small fonts on small LCD
cbrake opened this issue · 2 comments
I have an application where I'd like to render the tight pixel font (https://www.dafont.com/tight-pixel.font) on a small 128x64 LCD with a 1-bit color space. Attached is an image showing the font rendered with golang/freetype (the example program), and gimp. I'd like it to look more like the gimp rendering (with no anti-aliasing, etc). Is there any way to do this with golang/freetype?
I've also looked at https://github.com/pbnjay/pixfont and it works OK, but it has an issue with calculating string width of using variable width fonts, plus it is more work to use the font.
Appreciate any pointers.
(note, most browsers and image viewers smooth the below image, so it is best viewed in gimp if you want to see exactly what is going on at the pixel level)
I ended up using https://github.com/pbnjay/pixfont -- I had to make a few tweaks that have been upstreamed. It is a little work to use, but in the end does the job.