-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
when set {x:Null}
to any control's FontFamily
property, application will crashed
#15873
Comments
Duplicate of #15287 ? And perhaps setting FontFamily to null should fail property validation as it works in WPF? |
yep, it's duplicated. |
There are multiple RPs related to font loading now, so we probably need to ask @Gillibald to check if any previous PR already fixed this issue. |
ok |
Describe the bug
in WPF, set
{x:Null}
to any control'sFontFamily
property, it will fallback to the default fontfamily rather than throw exception, but in Avalonia (version 11.0.10) will throw a exception and application crashedTo Reproduce
set
{x:Null}
to any control'sFontFamily
propertyExpected behavior
fallback to the default fontfamily
Avalonia version
11.0.10
OS
Windows, Linux, Android
Additional context
No response
The text was updated successfully, but these errors were encountered: