Skip to content

FormattedString ignores font scale on Android — withFontScale hardcodes 1, AbsoluteSizeSpan skips scale multiply - #11349

Open
tsushanth wants to merge 2 commits into
NativeScript:mainfrom
tsushanth:fix/FormattedString-ignores-font-scale-on-An-1786552146
Open

FormattedString ignores font scale on Android — withFontScale hardcodes 1, AbsoluteSizeSpan skips scale multiply#11349
tsushanth wants to merge 2 commits into
NativeScript:mainfrom
tsushanth:fix/FormattedString-ignores-font-scale-on-An-1786552146

Conversation

@tsushanth

Copy link
Copy Markdown

Fix Android font scale: withFontScale (and other with* mutators) now preserve/forward scale correctly; AbsoluteSizeSpan in setSpanModifiers now multiplies fontSize by fontScaleInternal

Found via automated repo scanning, fix written and reviewed before opening.

…rdcodes 1, AbsoluteSizeSpan skips scale multiply
@CatchABus

CatchABus commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

This shouldn't be enough to scale spans the right way in most android devices and I know through trial.
Can you confirm a plain label with the same scale as a spanned label are identical in size on your screen by switching scale to different values from a11y settings?

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.

4 participants