Package com.itextpdf.io.font.otf
Class OtfClass
java.lang.Object
com.itextpdf.io.font.otf.OtfClass
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionstatic OtfClasscreate(RandomAccessFileOrArray rf, int classLocation) Creates newOtfClassinstance.intgetOtfClass(int glyph) Returns the otf class for the passed glyph.intgetOtfClass(int glyph, boolean strict) Returns the otf class for the passed glyph.booleanhasClass(int glyph) Determines whether passed glyph has class.booleanisMarkOtfClass(int glyph) Determines whether passed glyph is Mark or not.
-
Field Details
-
GLYPH_BASE
public static final int GLYPH_BASE- See Also:
-
GLYPH_LIGATURE
public static final int GLYPH_LIGATURE- See Also:
-
GLYPH_MARK
public static final int GLYPH_MARK- See Also:
-
-
Method Details
-
create
Creates newOtfClassinstance.- Parameters:
-
rf-RandomAccessFileOrArray -
classLocation- class location - Returns:
-
new
OtfClassinstance
-
getOtfClass
public int getOtfClass(int glyph) Returns the otf class for the passed glyph.- Parameters:
-
glyph- the glyph - Returns:
- the requested result
-
isMarkOtfClass
public boolean isMarkOtfClass(int glyph) Determines whether passed glyph is Mark or not.- Parameters:
-
glyph- the glyph to check - Returns:
-
trueif the passed glyph is Mark; otherwisefalse
-
hasClass
public boolean hasClass(int glyph) Determines whether passed glyph has class.- Parameters:
-
glyph- the glyph - Returns:
-
trueif has; otherwisefalse.
-
getOtfClass
public int getOtfClass(int glyph, boolean strict) Returns the otf class for the passed glyph.- Parameters:
-
glyph- the glyph -
strict- boolean value identifying whether the check if passed glyph has class should be done first (-1 is returned if glyph doesn't have class and strict is true) - Returns:
- the requested result
-