Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        internal static FontFamily FontFor(IconChar iconChar)
        {
            if (Orphans.Contains(iconChar))
            {
                return(null);
            }
            var typeFace = Typefaces.Find(iconChar.UniCode(), out _, out _);

            return(typeFace?.FontFamily);
        }
Exemplo n.º 3
0
 internal static Typeface TypefaceFor(IconChar iconChar)
 {
     return(Orphans.Contains(iconChar) ? null : Typefaces.Find(iconChar.UniCode(), out _, out _));
 }