WIP: feat(renderer): align a fitted ZPL barcode inside its fit box; justified font 0 text blocks #11

Draft
james.maes wants to merge 1 commits from feat/zpl-barcode-align into develop
pull from: feat/zpl-barcode-align
1 Commits
Author SHA1 Message Date
james.maesandClaude Fable 5.2 65344f5981 feat(renderer): align a fitted ZPL barcode inside its fit box; justified font 0 text blocks
maven / build (push) Successful in 11m47s
build / maven (push) Successful in 11m47s
A fitted barcode's size depends on its data, so a scene cannot centre it by
position: until now the fitted raster always sat at the box origin and an
"align" on a barcode element was read and ignored.

- barcode with fit: optional align (left, center, right) and valign (top,
  middle, bottom) place the fitted raster inside the fit box. Absent, the
  raster stays at the origin, so published scenes print as before.
- text: optional align, blockWidth and maxLines make a justified block. Each
  line is one font 0 field in a one-line ^FB block; the renderer breaks lines
  itself (at a space, or before an opening parenthesis) so the printer never
  wraps or hyphenates. Text without these fields is unchanged.

Renderer module verify: 180 tests (6 new in ZplAlignmentTest), 0 Checkstyle
violations. Printer-side ^FB justification is not yet qualified on hardware.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-11 11:07:55 -06:00