Libre Barcode Project

251 points39 comments15 hours ago
dfox

Do not do this unless you do not have any other choice. Preferrably use whatever native barcode support of the printer involved, if it does not have that, just generate the barcode as vector image or bitmap with a resolution that is a integer fraction of the printers resolution. Generating correct Code128 as a SVG is about the same amount of work as generating the correct input for some sort of barcode font (the hard part is determining the switches between character sets, not generating bars from bytes).

show comments
1bpp

Is anyone willing to sacrifice their sanity for the sake of implementing a QR renderer as TTF hinting code?

show comments
ahlCVA

Barcode fonts have been around for ages. But what's cute about this one is that it can calculate the EAN13 checksum on its own.

show comments
infogulch

Neat! Barcodes are much more complex that I knew before looking into it. I used JsBarcode [1] to create a special barcode that reprograms a cheap barcode scanner we got on Amazon to be able to scan both UPS and FedEx tracking numbers. It is published on CodePen [2].

[1]: https://github.com/lindell/JsBarcode

[2]: https://codepen.io/infogulch/pen/yyLJdrP

joewhale

fyi code 39 barcodes are outdated because of the lack of check sums and leads to false positives.

muhammadusman

just curious: are barcodes better in anyway compared to a QR code?

show comments
ciupicri

It's not clear to me how can I put FNC3 and the beginning of the Code 128 bar code.

utopiah

Damn, yes please.

Another cool font, but less original, I stumbled upon recently is Marelle https://marelle.forge.apps.education.fr/ for cursive.

show comments
alex_suzuki

This would be more interesting if you wouldn’t need to calculate checksums yourself, and could just write the barcode value. Good luck doing that with something like Reed-Solomon (QR, Data Matrix, etc.) or the shenanigans they’re doing with GS1 DataBar.

nemoniac

ASCII only?

show comments
dmitrygr

This is a perversion of the most sickening nature. Nicely done!

show comments