Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions apps/harness-letratag/src/diagnostic-print.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@ export function buildDiagnosticImage(input: DiagnosticPrintInput): RawImageData
// back defensively so a future registry edit doesn't crash.
const headDots = engine?.headDots ?? 30;
const dpi = engine?.dpi ?? 200;
// Every LT cassette is 12 mm with `printableDots: 30` — read it
// off the media descriptor so we honour any future edge-case
// narrowing (e.g. iron-on cassettes that print fewer rows).
const widthDots = Math.min(input.media.printableDots, headDots);
// Printable head height is an engine fact (`headDots`), not a
// per-cassette one — every LT cassette images the same 30 dots.
const widthDots = headDots;
return buildShared({
widthDots,
heightDots: Math.round((TAPE_DEFAULT_MM * dpi) / 25.4),
Expand Down