You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You should also be able to set the FontWeight to 270 and it should work. In the end the fallback logic is failing to select your desired typeface. The fallback is needed because you didn't specify the FontWeight.
The font that I purchased (Kommon Grotesk Light) has a weight of 270. Didn't want to specify both font family and weight for each place where I'm using it.
Describe the bug
SKTypefaceCollection fails to load fonts with weight that aren't weight % 50 == 0
To Reproduce
Steps to reproduce the behaviour:
Try to load a font with weight 270.
Issue at
Avalonia/src/Skia/Avalonia.Skia/SKTypefaceCollection.cs
Line 39 in 0ed90f0
My suggestion is to change the 50 to 10.
My workaround was to change the weight of the font to 250 with help from FontForge after struggling to get my font rendering to work.
Expected behaviour
It should work.
Screenshots
Desktop (please complete the following information):
Windows
-0.10.10
The text was updated successfully, but these errors were encountered: