Class CharUtil

java.lang.Object
com.adobe.fontengine.CharUtil

public final class CharUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 sequence
      start - the index of the first character
      limit - 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 string
      start - the index in usvs of the first character
      limit - 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)