pklaus / brother_ql_web

A Python-based web service to print labels on Brother QL label printers. Based on brother_ql: https://github.com/pklaus/brother_ql
GNU General Public License v3.0
254 stars 124 forks source link

Add leading #12

Open vonloxley opened 6 years ago

vonloxley commented 6 years ago

It would be nice to get some leading between the lines. I used the following to get a line-height of 150%:

textsize = draw.multiline_textsize(text, font=im_font, spacing=kwargs['font_size']//2)

draw.multiline_text(offset, text, (0), font=im_font, align=kwargs['align'], spacing=kwargs['font_size']//2)