Exemplo n.º 1
0
        /// <summary>
        /// Convert a string of characters to corresponding font segments
        /// </summary>
        /// <param name="input">input string</param>
        /// <returns>list of corresponding character fonts</returns>
        public static Font[] GetString(string input)
        {
            var fonts = new Font[input.Length];

            if (fonts.Length > 0)
            {
                ConvertString(input.AsSpan(), fonts.AsSpan());
            }
            return(fonts);
        }