public override bool TrySubstitution(
     FontMetrics fontMetrics,
     GSubTable table,
     GlyphSubstitutionCollection collection,
     Tag feature,
     ushort index,
     int count)
 => false;
示例#2
0
        public bool TrySubstitution(
            FontMetrics fontMetrics,
            GSubTable table,
            GlyphSubstitutionCollection collection,
            Tag feature,
            ushort index,
            int count)
        {
            foreach (LookupSubTable subTable in this.LookupSubTables)
            {
                if (subTable.TrySubstitution(fontMetrics, table, collection, feature, index, count))
                {
                    // A lookup is finished for a glyph after the client locates the target
                    // glyph or glyph context and performs a substitution, if specified.
                    return(true);
                }
            }

            return(false);
        }