Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .typesettingLanguage view modifier to post/comment content #1800

Open
Sjmarf opened this issue Feb 25, 2025 · 0 comments
Open

Add .typesettingLanguage view modifier to post/comment content #1800

Sjmarf opened this issue Feb 25, 2025 · 0 comments

Comments

@Sjmarf
Copy link
Member

Sjmarf commented Feb 25, 2025

We attach .typesettinglanguage to the Text view in post/comment content, passing in the language for that post/comment.

This makes Text render it in the ideal way for that language. If this isn't set, it uses the language of the app UI as the default typesetting language. This might become a problem if we offer the app in languages where line spacing is different (e.g. Urdu, maybe some others), because that taller line spacing will be applied to all text in the app, including post/comment text in English and other languages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant