Skip to content
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

API to determine if Large Fonts are in use on the device. #28174

Open
sholman opened this issue Mar 5, 2025 · 0 comments
Open

API to determine if Large Fonts are in use on the device. #28174

sholman opened this issue Mar 5, 2025 · 0 comments

Comments

@sholman
Copy link

sholman commented Mar 5, 2025

Description

When a user changes their device to large fonts, it typically plays havoc with a nicely built UI. While it's easy to allow some spacing in an app for differing font sizes, a UI will potentially become unusable (or at least hard to navigate) at 2x font size.

I know that the FontAutoScalingEnabled option exists, but that's bad for acessability if you just disable the scaling.

Ideally we should have some ability to query whether the device has large fonts enabled so we can make UI decisions accordingly. Maybe reduce some padding, maybe hide an icon that looks good at normal sizing but isn't imperative to the usage of the app. Maybe enable word wrap in certain areas.

Public API Changes

if (App.LargeFontsEnabled) {
icon.Visible = false;
}

Intended Use-Case

As described above. We would check if large fonts are in use and alter the UI accordingly to make things more readable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant