How to adjust font size of reactive mobile app dynamically with device font/text size.
Below attached screenshot for ios text size.
Hi,
Please check the component below
https://www.outsystems.com/forge/component-overview/8268/font-size-increase-decrease-o11
Hi Dibs,
You can achieve this using CSS and media queries. Here’s an older post with an example.
Additionally, here's another post that walks you through adjusting the font size based on the length of the text.
You can also find other helpful CSS classes in the documentation to assist with this.
Hi Beatriz,
Thank you for your help . But the above steps doesn't fulfil my requirement actually I want to adjust my application font according to the ios system text scale like above I have shared a Image of a apple device settings that applied to overall font size including device UI. but in my app it doesn't changing it's font size ie larger to smaller
Follow the below steps:
Oml is also attached for reference.RegardsKrishnanand Pathak
Hi
Krishnanand,
Hi @Dibs
Outsystems renders UI using HTML- CSS inside a webview which does not inherit iOS dynamic type scaling. Hence, in your case, the app will not resize automatically just because the user changes iPhone text size.
To make your OS fonts scale dynamically, you can create a Cordova plugin with CSS variable scaling and then expose it to OS.