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

Support Density.textSize on iOS #2567

Closed
igordmn opened this issue Dec 19, 2022 · 1 comment · Fixed by JetBrains/compose-multiplatform-core#537
Closed

Support Density.textSize on iOS #2567

igordmn opened this issue Dec 19, 2022 · 1 comment · Fixed by JetBrains/compose-multiplatform-core#537
Assignees
Labels
enhancement New feature or request ios

Comments

@igordmn
Copy link
Collaborator

igordmn commented Dec 19, 2022

Code:

@Composable
fun MyText() {
    Text("Text", fontSize = 20.sp)
}

The size of the text should be relative to the font size settings in the iOS system.

As far, as I know, this setting is called "Dynamic type". We need to pass the value to ComposeScene(density = Density(textSize). 1.0 - no text scaling, 2.0 - double scaling

We also need to react on changes of this property.

@okushnikov
Copy link
Collaborator

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

@JetBrains JetBrains locked and limited conversation to collaborators Dec 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request ios
Projects
None yet
4 participants