Package com.adobe.fontengine
Class CharUtil
java.lang.Object
com.adobe.fontengine.CharUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcompose(int[] usvs, int start, int limit) Return the entry to lookup in a cmap for a combining sequence.static intcomposeHangulSyllable(int[] usvs, int start, int limit) static booleanisBase(int ch) static booleanisCombining(int ch) static booleanisControl(int ch) static int[]mapStringFrom(int[] usvs, int start, int limit) Return the entries to populate in a cmap for a glyph that represents a given string.
-
Constructor Details
-
CharUtil
public CharUtil()
-
-
Method Details
-
compose
public static int compose(int[] usvs, int start, int limit) Return the entry to lookup in a cmap for a combining sequence.- Parameters:
usvs- contains the sequencestart- the index of the first characterlimit- the index following the last character- Returns:
- the entry to lookup, -1 if none
-
mapStringFrom
public static int[] mapStringFrom(int[] usvs, int start, int limit) Return the entries to populate in a cmap for a glyph that represents a given string. This method accounts for all canonical equivalences except CJK compatibility characters.- Parameters:
usvs- contains the stringstart- the index in usvs of the first characterlimit- the index in usvs following the last character- Returns:
- the cmap entries to populate; if none, an empty array
-
composeHangulSyllable
public static int composeHangulSyllable(int[] usvs, int start, int limit) -
isBase
public static boolean isBase(int ch) -
isCombining
public static boolean isCombining(int ch) -
isControl
public static boolean isControl(int ch)
-