graphicore / librebarcode

Libre Barcode: barcode fonts for various barcode standards.
https://graphicore.github.io/librebarcode
SIL Open Font License 1.1
425 stars 25 forks source link

Documentation should mention `white-space: pre` #54

Open ceving opened 1 year ago

ceving commented 1 year ago

If you use the font in a HTML page, it is mandatory to use the CSS style white-space: pre. Without this style the barcode is not readable by barcode scanners. The example code contains this, but the documentation does not explain it. It took me a while to figure this out.