Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Can't load Arial Black as SKTypeface on Windows 10 machine #682
When specifying the font family name of "Arial Black" on a Windows 10 machine (or Windows Server 2016), SkiaSharp selects "Segoe UI" instead.
When loading "Arial Black" as a
It correctly finds the font:
SkiaSharp should be able to find the "Arial Black" font family.
SkiaSharp selects the default "Segoe UI" font family.
While browsing the Fonts folder in Windows, I noticed that the only font that appears in the main list is "Arial":
But when you double-click on "Arial," it then displays "Arial Black" in that list:
Does that have something to do with why SkiaSharp can't find that font? But why can
For anyone else experiencing the same problem, I realized that the
The question still remains for me: why can't SkiaSharp handle "Arial Black" but
This sounds very interesting... I will see what I can find out.
GDI+ handles font families differently it uses different families for styles like narrow or black. DirectWrite or other frameworks just have one FontFamily
That really the issue here. TECHNICALLY skia is right. But, we are in the old world and it is unexpected. Google mentions that they have an extra layer over the font to read the prefix/suffix to read the weight and spacing: eg "Arial BLACK EXPANDED"
I will have to investigate this further to see if we want to do this in the API or leave it up to the developer. Leave comments and we can discuss.