.NET Maui does not support FontAutoScalingEnabled for windows platform
This issue has been moved from a ticket on Developer Community.
[severity:It’s more difficult to complete my work]
Create .NET Maui Project
Create a Label with text
Set Label.FontAutoScalingEnabled = false
Set run platform to “Windows Machine”
Run application
Note size of text
Change the windows display scaling to 1.5 or 1.25 (larger than above)
Set run platform to “Windows Machine”
Run application again
Note new size of text is larger which it should not be
Original Comments
Feedback Bot on 7/28/2024, 06:24 PM:
(private comment, text removed)
Original Solutions
(no solutions)
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Open similar issues:
- Font auto scaling doesn’t work on iOS. (#16625), similarity score: 0.74
- FontAutoScalingEnabled doesn't work when used in a ListView template (#20236), similarity score: 0.73
Closed similar issues:
- .NET MAUI - Label and Button does not resize to fit Text width on Android platform (#8374), similarity score: 0.75
- MAUI App Scaling Issue on Windows (#23065), similarity score: 0.74
- .NET MAUI, Entry Size(Heighr) is Error. (#17635), similarity score: 0.73
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
I can repro this issue at Windows platform on the latest 17.12.0 Preview 1.0(8.0.80 &8.0.72).
I should also add, that this issue is for all controls that have text including Buttons & Entry.
After some more debugging I discovered that when I use text scaling vs screen scaling, the behavior is different. Text scaling on all platforms appears to respect the setting of "Label.FontAutoScalingEnabled". However, screen scaling does not respect that value. Is this by design?