Skip to content

1.3.0

Latest

Choose a tag to compare

@ronison ronison released this 19 Nov 13:51

Bars4J 1.3.0

Fixed

  • Matrix SVG/HTML canvas for rectangular symbols: the MatrixBarcodeFormat wrapper (Java and Node) sized both canvas dimensions from widthInModules, letterboxing rectangular matrix symbols — the PDF417 SVG carried a 564x564 canvas around a 564x48 symbol. Width and height are now computed separately from widthInModules/heightInModules; square formats (QRCode, Data Matrix, Aztec) are unaffected.
  • Node matrix toSvg document assembly still used the old Java wrapper format (viewBox, no fallback text); it now mirrors the current Java SvgDocument (fixed canvas, xMidYMid alignment, fallback text), so the matrix end-to-end SVG fixtures are byte-identical between Java and @bars4j/core again.
  • RenderSpec.fontSize now honoured by every output path — the SVG document style, the HTML snippet style and the raster label all follow the spec (defaults preserved: 14 px when unspecified).
  • Anti-aliased raster label glyphs: the human-readable label band now renders with text anti-aliasing enabled (grayscale), removing the hard jaggies on the label font.

Changed

  • Gallery trimmed to the README showcase samples: images/ now keeps only the 23 SVG samples presented in the README (and their locally generated PNG counterparts, still git-ignored); EAN5.svg and the EAN13-font-*.svg demo samples were removed from the repository.
  • images/PDF417.svg regenerated (564x48; the tracked sample predated the PDF417 encoder rewrite).
  • New MatrixCanvasTest pins the canvas-to-raster geometry parity for every matrix format.

Notes

  • Maven Central publishing is now fully automated (autoPublish=true + waitUntil=published): a published release deploys, validates and publishes on the Central Portal without manual approval.
  • @bars4j/core 1.3.0 ships the same conformance guarantees: 175 Node tests, 48/48 HTML snippets byte-identical with the Java output.

Full changelog: pr-1.1.0...pr-1.3.0