Ejemplo n.º 1
0
        SKTypeface qualifyTypeface(string text, SKTypeface typeface)
        {
            var glyphs = new ushort[typeface.CountGlyphs(text)];

            if (glyphs.Length < text.Length)
            {
                var fm      = SKFontManager.Default;
                var charIdx = (glyphs.Length > 0) ? glyphs.Length : 0;
                return(fm.MatchCharacter(text[glyphs.Length]));
            }

            return(typeface);
        }