Skip to content

Android text styling#558

Merged
stackotter merged 4 commits intomoreSwift:mainfrom
bbrk24:android-text-styling
May 8, 2026
Merged

Android text styling#558
stackotter merged 4 commits intomoreSwift:mainfrom
bbrk24:android-text-styling

Conversation

@bbrk24
Copy link
Copy Markdown
Collaborator

@bbrk24 bbrk24 commented May 7, 2026

This PR adds a fonts example, implements text styling in AndroidBackend, and makes Android the first platform to use custom text styles (they actually grow and shrink in response to the system font size setting).

Copy link
Copy Markdown
Collaborator

@stackotter stackotter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks great 🙏 Just figured we should document a couple of the arbitrary-ish decisions we discussed so that we can rediscover the reasoning in future if we ever want to change things

Comment thread Sources/AndroidBackend/AndroidBackend+Fonts.swift
Comment thread Sources/AndroidBackend/AndroidBackend+Fonts.swift Outdated
@stackotter
Copy link
Copy Markdown
Collaborator

In my local testing, I found that these changes break the default font colour of text when using dark mode on Android. The best way to solve that is probably for us to properly detect and respect the system theme.

@bbrk24 bbrk24 requested a review from stackotter May 7, 2026 21:54
Copy link
Copy Markdown
Collaborator

@stackotter stackotter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks! 🙏 Gonna test locally and then merge

@stackotter stackotter merged commit 33b9c49 into moreSwift:main May 8, 2026
12 checks 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.

2 participants