]>
git.saurik.com Git - apple/icu.git/blob - icuSources/layout/CharSubstitutionFilter.h
3 * (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved
7 #ifndef __CHARSUBSTITUTIONFILTER_H
8 #define __CHARSUBSTITUTIONFILTER_H
11 #include "LEGlyphFilter.h"
18 * This filter is used by character-based GSUB processors. It
19 * accepts only those characters which the given font can display.
23 class CharSubstitutionFilter
: public UMemory
, public LEGlyphFilter
27 * Holds the font which is used to test the characters.
31 const LEFontInstance
*fFontInstance
;
34 * The copy constructor. Not allowed!
38 CharSubstitutionFilter(const CharSubstitutionFilter
&other
); // forbid copying of this class
41 * The replacement operator. Not allowed!
45 CharSubstitutionFilter
&operator=(const CharSubstitutionFilter
&other
); // forbid copying of this class
51 * @param fontInstance - the font to use to test the characters.
55 CharSubstitutionFilter(const LEFontInstance
*fontInstance
);
62 ~CharSubstitutionFilter();
65 * This method is used to test if a particular
66 * character can be displayed by the filter's
69 * @param glyph - the Unicode character code to be tested
71 * @return TRUE if the filter's font can display this character.
75 le_bool
accept(LEGlyphID glyph
) const;