Exemple #1
0
        ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        public bool IsCharSupported(string text, int index)
        {
            uint glyphIndex;

            if (char.IsHighSurrogate(text, index))
            {
                glyphIndex = Descriptor.CharCodeToGlyphIndex(text[index], text[index + 1]);
            }
            else
            {
                glyphIndex = Descriptor.CharCodeToGlyphIndex(text[index]);
            }

            return(glyphIndex != 0);
        }