Svg.Skia
Svg.Skia copied to clipboard
CustomTypefaceProvider can't match font family
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