Class OtfClass

java.lang.Object
com.itextpdf.io.font.otf.OtfClass

public class OtfClass extends Object
  • Field Details

  • Method Details

    • create

      public static OtfClass create (RandomAccessFileOrArray rf, int classLocation)
      Creates new OtfClass instance.
      Parameters:
      rf - RandomAccessFileOrArray
      classLocation - class location
      Returns:
      new OtfClass instance
    • 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:
      true if the passed glyph is Mark; otherwise false
    • hasClass

      public boolean hasClass (int glyph)
      Determines whether passed glyph has class.
      Parameters:
      glyph - the glyph
      Returns:
      true if has; otherwise false.
    • 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