Accessibility & Feature Request: Make fonts follow the System font and size
Is your feature request related to a problem? Please describe.
After testing Avalonia in my Linux KDE laptop (regular 1080p screen, i downloaded a few programs from the showcase) i came to the realization that fonts are very basic, to not say lackluster.
I use slightly larger fonts to avoid straining my eyes and i noticed that the fonts in Avalonia look a lot smaller and not as sharp. Not even using a fun font like Z003 made the fonts change. (i tested ULogViewer and Ryujinx)
This is a big problem, not only does it make Avalonia programs stand out more as not native, but it makes the lives of people with accessibility troubles a lot harder (for example Dyslexia, all the different forms of blindness and natural age eye deterioration). It's crucial to fix this, as accessibility locks people away from software and makes competing GUI toolkits more popular.
I didn't test how the fonts behave on Windows, Android and Apple systems, so i don't know if this is a Linux specific problem, an Avalonia problem or a me problem (i didn't find matching issues online).
Describe the solution you'd like
Use the System or environment's API to know what font is the system using.
Describe alternatives you've considered
No response
Additional context
No response
You can use whatever font you want to use. What is the issue here? Feel free to add a fontconfig binding until then just use your desired font manually.
We rely on Skia's fontconfig integration for the default and that works on properly set up systems.
What is the issue here?
It's probably not an issue but a feature request. And I somewhat agree that having an option to follow system here similar to Light / Dark / Default mode may be a good thing to do, but it should be opt-in. Probably in AppBuilder .WithSystemFontConfig() could be added?
I like @timunie idea here. But developers (not users) have control over an application's font. Developers need to add font customization to each app -- it's not done on a system level.
Note that font size (text size) is configurable on some OSes as well. We should probably support that as well.