Skip to content

Commit

Permalink
Fix GlyphTypeface loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Gillibald committed Apr 5, 2022
1 parent 7a9fe89 commit 22dd9cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Skia/Avalonia.Skia/SKTypefaceCollectionCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private static SKTypefaceCollection CreateCustomFontCollection(FontFamily fontFa
if (typeface == null)
throw new InvalidOperationException("Typeface could not be loaded.");

if (typeface.FamilyName != fontFamily.Name)
if (!typeface.FamilyName.Contains(fontFamily.Name))
{
continue;
}
Expand Down

0 comments on commit 22dd9cc

Please sign in to comment.