Description
Description
When specifying the font family name of "Arial Black" on a Windows 10 machine (or Windows Server 2016), SkiaSharp selects "Segoe UI" instead.
Code
SKTypeface tf = SKTypeface.FromFamilyName("Arial Black", SKFontStyleWeight.Bold, SKFontStyleWidth.Normal, SKFontStyleSlant.Upright);
The resulting SKTypeface
has these properties:
When loading "Arial Black" as a System.Drawing.FontFamily
like this:
FontFamily fontFamily = new FontFamily("Arial Black");
It correctly finds the font:
Expected Behavior
SkiaSharp should be able to find the "Arial Black" font family.
Actual Behavior
SkiaSharp selects the default "Segoe UI" font family.
Basic Information
- Version with issue: 1.60.3
- IDE: Visual Studio
- Platform Target Frameworks:
- Windows Classic: .NET Framework 4.7.2
Additional Information
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 System.Drawing.FontFamily
find the font, but SkiaSharp can't?
VS bug #735691
Metadata
Metadata
Assignees
Labels
Type
Projects
Status