Package com.adobe.fontengine
Class CharUtil
- java.lang.Object
-
- com.adobe.fontengine.CharUtil
-
public final class CharUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CharUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
compose(int[] usvs, int start, int limit)
Return the entry to lookup in a cmap for a combining sequence.static int
composeHangulSyllable(int[] usvs, int start, int limit)
static boolean
isBase(int ch)
static boolean
isCombining(int ch)
static boolean
isControl(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.
-
-
-
Method Detail
-
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)
-
-