public static ImageSource ToImageSource(this IconChar iconChar, Brush foregroundBrush = null, double size = DefaultSize) { var typeFace = Typefaces.Find(iconChar, out var gt, out var glyphIndex); return(typeFace == null ? null : ToImageSource(foregroundBrush, size, gt, glyphIndex)); }
internal static FontFamily FontFor(IconChar iconChar) { if (Orphans.Contains(iconChar)) { return(null); } var typeFace = Typefaces.Find(iconChar.UniCode(), out _, out _); return(typeFace?.FontFamily); }
internal static Typeface TypefaceFor(IconChar iconChar) { return(Orphans.Contains(iconChar) ? null : Typefaces.Find(iconChar.UniCode(), out _, out _)); }