Svg.Skia icon indicating copy to clipboard operation
Svg.Skia copied to clipboard

CustomTypefaceProvider can't match font family

Open skaman opened this issue 2 years ago • 0 comments

I stumbled in a problem where CustomTypefaceProvider can't match the family name from an SVG with the one registered.

The problem is this line: https://github.com/wieslawsoltes/Svg.Skia/blob/f5ced19d5476d250d1aa7558bc26b0ccbb0652ea/src/Svg.Skia/TypefaceProviders/CustomTypefaceProvider.cs#L47

The condition should be:

if (fontFamilyName == FamilyName)

otherwise it ignore family with quotes or multiple families

skaman avatar Jul 03 '22 12:07 skaman