Browse Source
Merge branch 'master' into fixes/osx-implement-default-app-menu
pull/3220/head
danwalmsley
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/Skia/Avalonia.Skia/SKTypefaceCollection.cs
|
|
|
@ -31,7 +31,7 @@ namespace Avalonia.Skia |
|
|
|
|
|
|
|
return _fontFamilies.TryGetValue(familyName, out var fontFamily) ? |
|
|
|
fontFamily.GetOrAdd(key, GetFallback(fontFamily, key)) : |
|
|
|
null; |
|
|
|
new TypefaceCollectionEntry(Typeface.Default, SkiaSharp.SKTypeface.Default); |
|
|
|
} |
|
|
|
|
|
|
|
private static TypefaceCollectionEntry GetFallback(IDictionary<FontKey, TypefaceCollectionEntry> fontFamily, FontKey key) |
|
|
|
|