-
Notifications
You must be signed in to change notification settings - Fork 86
Non-linear font scaling #1867
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
base: jb-main
Are you sure you want to change the base?
Non-linear font scaling #1867
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LDTM with 2 minor comments.
Thank you for the contribution!
compose/ui/ui-unit/src/uikitMain/kotlin/androidx/compose/ui/unit/FontScaling.uikit.kt
Outdated
Show resolved
Hide resolved
compose/ui/ui-unit/src/jbMain/kotlin/androidx/compose/ui/unit/FontScaling.jb.kt
Show resolved
Hide resolved
@igordmn , since there are changes in Desktop API, we need your approval. |
@@ -48,7 +48,7 @@ public final class androidx/compose/ui/unit/ConstraintsKt { | |||
public static synthetic fun offset-NN6Ew-U$default (JIIILjava/lang/Object;)J | |||
} | |||
|
|||
public abstract interface class androidx/compose/ui/unit/Density : androidx/compose/ui/unit/FontScalingLinear { | |||
public abstract interface class androidx/compose/ui/unit/Density : androidx/compose/ui/unit/FontScaling { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it a breaking change (for binary compatibility)?
cc @igordmn
Adapt Android non-linear font scaling and map Dynamic Type HIG to font scaling tables on IOS
Fixes https://youtrack.jetbrains.com/issue/CMP-738/Support-non-linear-text-scale-for-other-platforms
Testing
FontScalingTest.uikit.kt
This should be tested by QA
Release Notes
Features - iOS
Density
now performs non-linear font scaling and conforms to HIG