Skip to content

Keep timer digits evenly spaced - #22

Merged
PurpleSentinel merged 1 commit into
v3from
feature/fixed-width-timer-digits
Aug 10, 2026
Merged

Keep timer digits evenly spaced#22
PurpleSentinel merged 1 commit into
v3from
feature/fixed-width-timer-digits

Conversation

@PurpleSentinel

Copy link
Copy Markdown
Contributor

Summary

  • render countdown and elapsed-time digits in equal-width cells
  • keep timer origins fixed as displayed figures change
  • preserve proportional spacing for non-timer interface text
  • document the timer typography behavior

Why

The native Montserrat glyphs have proportional digit widths, so recentering each updated time value caused the countdown to shift slightly. Tabular digit cells remove that movement while retaining the existing font and centering behavior.

Validation

  • python -m unittest discover -s tests -v — 71 tests passed
  • verified 11:11 and 88:88 use identical origins and widths on the connected RP2040 display at both timer sizes
  • visually checked the hardware framebuffer for clean, unclipped rendering

@PurpleSentinel
PurpleSentinel merged commit 9f1e54a into v3 Aug 10, 2026
2 checks passed
@PurpleSentinel
PurpleSentinel deleted the feature/fixed-width-timer-digits branch August 10, 2026 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants