Open davte-beijer opened 1 year ago
Is the font available on the system?
Yes, I have installed the Inter Font separately on the target, but makes no difference. When I run projects on my win-x64 machine it works fine and I do not have the Inter font installed.
Thx for confirming
Can you try to downgrade Angle version used in the project? By referencing this version of the angle package: https://www.nuget.org/packages/Avalonia.Angle.Windows.Natives/2.1.0.2023020321:
<PackageReference Include="Avalonia.Angle.Windows.Natives" Version="2.1.0.2023020321" />
Also, it seems not all windows on arm devices have old known compatibility issue - https://github.com/AvaloniaUI/Avalonia/issues/10405. Unless you are using software rendering from the beginning.
Upd: just remembered that 11.0.5-rc should use the older Angle package anyway. No idea what could go wrong then.
Please update me if you need any other scenario verified!
Out of curiosity: Do you see any logs that could give us a hint?
I also wonder if we have a chance to find the commit that broke it for you.
I made a smaller project based on the mvvm template and configured logging like the following:
public static AppBuilder BuildAvaloniaApp()
=> AppBuilder.Configure<App>()
.UsePlatformDetect()
.WithInterFont()
.LogToTrace(LogEventLevel.Verbose)
.UseReactiveUI();
The logs do not mention anything that seem to be font issues, at least from what I can tell.
Describe the bug
When building Avalonia projects targeting win-arm64 from 11.0.0-preview5 and onward no font will be displayed in the application.
To Reproduce
dotnet publish samples\ControlCatalog.NetCore\ControlCatalog.NetCore.csproj -c Release --self-contained true -r win-arm64
Expected behavior
Font should be visible
Screenshots
11.0.0-preview5 and onward:
11.0.0-preview4:
Environment