Skip to content

Can't load Arial Black as SKTypeface on Windows 10 machine #682

Open
@washamdev

Description

@washamdev

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:

image

When loading "Arial Black" as a System.Drawing.FontFamily like this:

FontFamily fontFamily = new FontFamily("Arial Black");

It correctly finds the font:

image

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":

image

But when you double-click on "Arial," it then displays "Arial Black" in that list:

image

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

Type

No type

Projects

Status

New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions