Skip to content

[feat] Support printers with a wider print head #6

Description

@toolicious

Requested by @ericszimmermann in #1.

LaBLEr currently only supports the P15/P12/L13 family with their 96-dot (12 mm) print head. Other thermal printers in the same protocol family, like receipt printers (e.g. GooJPRT PT-210), have wider heads (384 or 576 dots, roughly 48 or 80 mm printable width). The app should support those too.

Eric's PT-210 printing a label

The printer module is already generalized on the head-width branch: MonoImage carries its own height, ColumnPacker and PrintJobBuilder read it from the image instead of a constant, and the P15 output is unchanged (existing tests pass unmodified). What's left is the app side: making the print height per-template in LabelSpec, wiring it through the renderer, editor, and canvas snapping, and adding a setting or auto-detection for the head width.

Important: LaBLEr's text runs along the feed direction (landscape labels). On a receipt printer, that means the output is rotated 90° compared to typical receipt apps. A wider head gives more millimeters across the paper, but the orientation stays the same. This is by design and I currently don't plan to change that.

Needs @ericszimmermann (or anyone with the hardware) to test. The main unknowns are the exact dot count of the head and whether CONTINUOUS_FEED_DOTS (91) is the same on wider printers.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions