computerlyrik / dymoprint

Linux Software to print with LabelManager PnP from Dymo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[suggestion] Improve print quality for small texts

puzrin opened this issue · comments

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:

  1. 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 :)
  2. Add option to define [font + size + line height] implicit.
    • this will allow use embedded pixel-perfect fonts until without "autoselect" algorithm.

Seems hinting info is not used. I see much better results with Roboto font when rendered on node.js via canvas package.

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.