Open teicher opened 3 years ago
updated my comment above. sorry for the empty commit. BTW as the Image is a BufferedImage anyway, that could be the return type of encode(), allowing to work with it with ImageIO and stuff. (or RenderedImage if you prefer an interface)
I did notice this myself while rewriting the drawing in the .NET version of this lib. The labels are a huge pain and should be rewritten. I would love to see a pull request to help with this.
When creating a EAN13 with standardized label something is broken with the computation of the white boxes and the font heights. Especially is looks like setFont() is never called internally in this code flow and defaults to something
version: 'com.pnuema.java:barcode:1.10'