graphicore / librebarcode

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

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

Open ceving opened 2 years ago

ceving commented 2 years 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.