[suggestion] Improve print quality for small texts
puzrin opened this issue · 2 comments
puzrin commented
Hi!
I use centrifuge tubes to store SMD components, an print small labels with 2 or 3 lines. To reach acceptable quality in small prints, i' suggest this things:
- Pixel-perfect fonts should be embedded
- Good start point for search is https://github.com/olikraus/u8g2/wiki/fntlistall
- May be
bdf2ttf
can help (but it would be better to find fonts with kerning) - Path to embedded fonts should "searcheable" for more compact CLI typing.
- There are no need to embed hundreds of fonts. Goal is to have at least one useable for each size :)
- Add option to define [font + size + line height] implicit.
- this will allow use embedded pixel-perfect fonts until without "autoselect" algorithm.
puzrin commented
Seems hinting info is not used. I see much better results with Roboto font when rendered on node.js
via canvas
package.
puzrin commented
https://github.com/puzrin/lbprint
It appeared more simple to create everything from scratch in js. Feel free to reuse any part as you wish.