disable FontAutoScalingEnabled for SfCheckBox and SfRadioButton

Hi, I want to disable autoscaling for text on SfCheckBox and SfRadioButton. I followed the instructions in topic https://www.syncfusion.com/forums/187249/disable-fontautoscalingenabled but it doesn't work for SfCheckBox and SfRadioButton. Can anyone help me solve this problem?




3 Replies 1 reply marked as answer

BV Brundha Velusamy Syncfusion Team May 31, 2024 11:06 AM UTC

Hi Kimmy,

 

We want to inform you that font auto-scaling is currently not supported for the SfCheckBox and SfRadioButton controls. Consequently, font auto-scaling will not be applied to these controls.

 

If you require additional assistance, please don't hesitate to contact us. We are here to assist you!

 

Regards,

Brundha V



KI kimmy June 3, 2024 01:18 AM UTC

Hi Brundha V

According to your information, SfCheckBox and SfRadioButton do not auto-scaling fontsize according to the device's configuration. However, when I test on an Android device, it doesn't scale, but on an iOS device, it still scales according to the device's settings. 

This is the interface if you set the default font size in the device settings:

This is the interface if you set the font size is larger in the device settings:

Simulator Screenshot - iPhone 15 - 2024-06-03 at 08.06.25.png

Can you check again about this? Thank you.

Regards,




BV Brundha Velusamy Syncfusion Team June 3, 2024 10:11 AM UTC

Hi Kimmy,


To disable font auto-scaling on an iOS device, we recommend setting the FontSize property in the SfCheckBox and SfRadioButton controls according to your needs. This will help prevent font auto-scaling for these controls. If you still encounter any issues, please let us know the details.


Here's the code snippet for your reference:

<StackLayout>

    <buttons:SfRadioButton Text="IsChecked"

                           FontSize="16"/>

    <buttons:SfCheckBox Text="IsChecked"

                        FontSize="16"/>

</StackLayout>


Regards,

Brundha V


Marked as answer
Loader.
Up arrow icon