Skip to content

Share the current look's fonts with other apps - #90

Merged
BrianJr03 merged 2 commits into
mainfrom
feature/share-look-fonts
Nov 25, 2026
Merged

BrianJr03 merged 2 commits into
mainfrom
feature/share-look-fonts

Conversation

@BrianJr03

Copy link
Copy Markdown
Owner

Summary

  • Adds a /fonts row (contract version 2) next to the unchanged /palette version 1: look id, display and label font as bundled:<key> or user:<id> plus sha256.
  • Adds read-only openFile("fonts/<id>") for imported fonts, only for Jarngreipr callers whose signing cert matches the pins. Strict id format, canonical path check, write modes refused.
  • Notifies /fonts observers only when that row changes. Docs updated in docs/SHARED_THEME.md.

Refs #89

Test plan

  • ./gradlew :app:testDebugUnitTest: 715/715 (18 new), palette v1 pin test unchanged
  • scripts/verify-shared-fonts.sh on the Thor: 19 pass, 0 fail, 1 skip (no imported font applied)
  • Manual: shell caller refused a font file; traversal paths refused; palette v1 columns unchanged
  • Trusted Jarn read of an imported font (covered by the Jarn reader ticket)

@BrianJr03
BrianJr03 merged commit 78d96c7 into main Nov 25, 2026
1 check passed
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.

1 participant