Skip to content

feat(ios): add custom font support to markdown theme - #572

Merged
maksg merged 1 commit into
mainfrom
graszka22/ios-impl-18
Jul 29, 2026
Merged

feat(ios): add custom font support to markdown theme#572
maksg merged 1 commit into
mainfrom
graszka22/ios-impl-18

Conversation

@graszka22

Copy link
Copy Markdown
Collaborator

Resolve bold, italic, and bold-italic via named font faces when trait synthesis fails.

What/Why?

Ads custom font support. There are 2 cases:

  • The dev uses a system font. For bold/italic/whatever ios can synthesise the font and all is good.
  • The dev uses a custom font. Normally in swift ui user would sent a specific ttf and for example for bold font would use "Monteserrat-Bold.ttf". This works, but what if user sets Monteserrat and then adds .bold()? Normally on swift ui it would use a regular Monteserrat. I found this confusing, so Enriched at least tries to find Monteserrat-Bold.ttf.

Testing

PR Checklist

  • Code compiles and runs on iOS
  • Code compiles and runs on Android
  • Updated documentation/README if applicable
  • Ran example app to verify changes
  • E2E tests are passing
  • Required E2E tests have been added (if applicable)

@maksg
maksg force-pushed the graszka22/ios-impl-17 branch from 6b0c8a4 to cbf926d Compare July 29, 2026 11:10
Base automatically changed from graszka22/ios-impl-17 to main July 29, 2026 11:13
Resolve bold, italic, and bold-italic via named font faces when trait synthesis fails.

Co-authored-by: Cursor <cursoragent@cursor.com>
@maksg
maksg force-pushed the graszka22/ios-impl-18 branch from 99bd014 to 09e9129 Compare July 29, 2026 11:13
@maksg
maksg merged commit c29339c into main Jul 29, 2026
9 checks passed
@maksg
maksg deleted the graszka22/ios-impl-18 branch July 29, 2026 11:16
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