Optional interface which indicates that glyph substitution is supported and, if supported, can perform substitution.
This work was originally authored by Glenn Adams (gadams@apache.org).
394395396397398399400401402403404
} /** {@inheritDoc} */ public boolean performsSubstitution() { if ( metric instanceof Substitutable ) { Substitutable s = (Substitutable) metric; return s.performsSubstitution(); } else { return false; } }
404405406407408409410411412413414
} /** {@inheritDoc} */ public CharSequence performSubstitution ( CharSequence cs, String script, String language ) { if ( metric instanceof Substitutable ) { Substitutable s = (Substitutable) metric; return s.performSubstitution ( cs, script, language ); } else { throw new UnsupportedOperationException(); } }
414415416417418419420421422423424
} /** {@inheritDoc} */ public CharSequence reorderCombiningMarks ( CharSequence cs, int[][] gpa, String script, String language ) { if ( metric instanceof Substitutable ) { Substitutable s = (Substitutable) metric; return s.reorderCombiningMarks ( cs, gpa, script, language ); } else { throw new UnsupportedOperationException(); } }