TL;DR: The issue stems from the order in which the new runtime in .NET Core initializes static fields.
Details: In FormsIconHelper.FontFamilyFor() the static field FormsIconHelper.Fonts is not accessed yet and thus does not load the actual packaged font data resources, causing the call to Typeface.TryGetGlyphTypeface(GlyphTypeface) to fail as the font isn't actually loaded into memory/PrivateFontCollection yet.
Commit Notes:Added a field accessor to trigger the field initialization. Get error checking for free!
This should resolve these two issues: #47 #46
TL;DR: The issue stems from the order in which the new runtime in .NET Core initializes static fields.
Details: In
FormsIconHelper.FontFamilyFor()
the static fieldFormsIconHelper.Fonts
is not accessed yet and thus does not load the actual packaged font data resources, causing the call to Typeface.TryGetGlyphTypeface(GlyphTypeface) to fail as the font isn't actually loaded into memory/PrivateFontCollection
yet.Commit Notes: Added a field accessor to trigger the field initialization. Get error checking for free!