Edinburgh-Genome-Foundry / blabel

:label: Python label/sticker PDF generation. HTML templates, built-in barcodes, qr codes, and other goodies
https://edinburgh-genome-foundry.github.io/blabel
MIT License
179 stars 38 forks source link

Example template generates different output than shown #3

Closed karlp closed 4 years ago

karlp commented 4 years ago

Hi,

I've created a template and css as per the basic example here: https://edinburgh-genome-foundry.github.io/blabel/ and ran the python demo script from the same page, but I get different output: Screenshot from 2020-09-02 14-11-42

Running the examples from the repository work, and the difference is the font-family for the label, I believe it's failing to fall back correctly?

Could the website at least be updated to match the repository?

veghp commented 4 years ago

Thanks for raising this issue.

The problem is that the fallback font is wider, therefore the text does not fit on the label and is moved on to the next line. This can be confirmed by setting larger width or height in the css. The solution is to use a narrower font, less template text, or decrease font-size in the css.

I'll modify the template html so that it will not be an issue.