Skip to content

Refactor device font configuration to improve code reuse#35

Merged
odudex merged 1 commit intoselfcustody:developfrom
tadeubas:refactor_font
Aug 26, 2025
Merged

Refactor device font configuration to improve code reuse#35
odudex merged 1 commit intoselfcustody:developfrom
tadeubas:refactor_font

Conversation

@tadeubas
Copy link
Copy Markdown
Member

This PR removes duplicated font.c implementations across devices and centralizes the font logic in a single source file.
Device-specific differences are now isolated in the font_device.h.

Benefits

  • Eliminates code duplication (only one font.c)
  • Simplifies future changes (fixes/updates apply to all devices automatically)
  • Keeps device-specific overrides limited to its variables
  • Improves maintainability and reduces the risk of inconsistencies

@odudex odudex merged commit 4564c93 into selfcustody:develop Aug 26, 2025
odudex added a commit that referenced this pull request Aug 26, 2025
* fix: increase glyphs indexing capacity
update translation glyphs

* Refactor device fonts to favor code reuse (#35)

---------

Co-authored-by: odudex <odudex@proton.me>
@tadeubas tadeubas deleted the refactor_font branch January 3, 2026 10:13
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