Skip to content

Large centering error at large font sizes #565

Closed

Description

@pglomski

zebraAlignOffsetDots purposefully injects a trailing space when centering text.

/** L/J start at left; J inner-stretch not visualised. Labelary centers as if
* each line carries one trailing space, so a centered line sits half a
* space-width left of the geometric center; R/L trim it, so only C shifts. */
export function zebraAlignOffsetDots(

Per comments, this is to match labelary behavior, but the shift makes it nearly impossible to have a template geometrically center text at very large font sizes and the effect is exacerbated by using a vertically oriented label.

In the case of printing 4x6 labels with a centered two-letter code (e.g. "FA" - "FZ"), the skew will shift the centered characters all the way to one side or the other of the label.

Activity

  1. self-assigned this
    on Oct 18, 2026
  2. u8array commented on Oct 18, 2026

    @u8array
    Owner

    Fixed the jump to the edge, the half-space shift is what the printer does. Hope that solves it (reopen if not).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions