Class CID_FaceDict

All Implemented Interfaces:
Pointer

public class CID_FaceDict extends Struct<CID_FaceDict>

 struct CID_FaceDictRec {
     {@link PS_Private PS_PrivateRec} private_dict;
     FT_UInt len_buildchar;
     FT_Fixed forcebold_threshold;
     FT_Pos stroke_width;
     FT_Fixed expansion_factor;
     FT_Byte paint_type;
     FT_Byte font_type;
     {@link FT_Matrix FT_Matrix} font_matrix;
     {@link FT_Vector FT_Vector} font_offset;
     FT_UInt num_subrs;
     FT_ULong subrmap_offset;
     FT_UInt sd_bytes;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • PRIVATE_DICT

      public static final int PRIVATE_DICT
      The struct member offsets.
    • LEN_BUILDCHAR

      public static final int LEN_BUILDCHAR
      The struct member offsets.
    • FORCEBOLD_THRESHOLD

      public static final int FORCEBOLD_THRESHOLD
      The struct member offsets.
    • STROKE_WIDTH

      public static final int STROKE_WIDTH
      The struct member offsets.
    • EXPANSION_FACTOR

      public static final int EXPANSION_FACTOR
      The struct member offsets.
    • PAINT_TYPE

      public static final int PAINT_TYPE
      The struct member offsets.
    • FONT_TYPE

      public static final int FONT_TYPE
      The struct member offsets.
    • FONT_MATRIX

      public static final int FONT_MATRIX
      The struct member offsets.
    • FONT_OFFSET

      public static final int FONT_OFFSET
      The struct member offsets.
    • NUM_SUBRS

      public static final int NUM_SUBRS
      The struct member offsets.
    • SUBRMAP_OFFSET

      public static final int SUBRMAP_OFFSET
      The struct member offsets.
    • SD_BYTES

      public static final int SD_BYTES
      The struct member offsets.
  • Constructor Details

    • CID_FaceDict

      public CID_FaceDict(ByteBuffer container)
      Creates a CID_FaceDict instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<CID_FaceDict>
    • private_dict

      public PS_Private private_dict()
      Returns:
      a PS_Private view of the private_dict field.
    • len_buildchar

      public int len_buildchar()
      Returns:
      the value of the len_buildchar field.
    • forcebold_threshold

      public long forcebold_threshold()
      Returns:
      the value of the forcebold_threshold field.
    • stroke_width

      public long stroke_width()
      Returns:
      the value of the stroke_width field.
    • expansion_factor

      public long expansion_factor()
      Returns:
      the value of the expansion_factor field.
    • paint_type

      public byte paint_type()
      Returns:
      the value of the paint_type field.
    • font_type

      public byte font_type()
      Returns:
      the value of the font_type field.
    • font_matrix

      public FT_Matrix font_matrix()
      Returns:
      a FT_Matrix view of the font_matrix field.
    • font_offset

      public FT_Vector font_offset()
      Returns:
      a FT_Vector view of the font_offset field.
    • num_subrs

      public int num_subrs()
      Returns:
      the value of the num_subrs field.
    • subrmap_offset

      public long subrmap_offset()
      Returns:
      the value of the subrmap_offset field.
    • sd_bytes

      public int sd_bytes()
      Returns:
      the value of the sd_bytes field.
    • create

      public static CID_FaceDict create(long address)
      Returns a new CID_FaceDict instance for the specified memory address.
    • createSafe

      public static @Nullable CID_FaceDict createSafe(long address)
      Like create, but returns null if address is NULL.
    • create

      public static CID_FaceDict.Buffer create(long address, int capacity)
      Create a CID_FaceDict.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable CID_FaceDict.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • nprivate_dict

      public static PS_Private nprivate_dict(long struct)
      Unsafe version of private_dict().
    • nlen_buildchar

      public static int nlen_buildchar(long struct)
      Unsafe version of len_buildchar().
    • nforcebold_threshold

      public static long nforcebold_threshold(long struct)
      Unsafe version of forcebold_threshold().
    • nstroke_width

      public static long nstroke_width(long struct)
      Unsafe version of stroke_width().
    • nexpansion_factor

      public static long nexpansion_factor(long struct)
      Unsafe version of expansion_factor().
    • npaint_type

      public static byte npaint_type(long struct)
      Unsafe version of paint_type().
    • nfont_type

      public static byte nfont_type(long struct)
      Unsafe version of font_type().
    • nfont_matrix

      public static FT_Matrix nfont_matrix(long struct)
      Unsafe version of font_matrix().
    • nfont_offset

      public static FT_Vector nfont_offset(long struct)
      Unsafe version of font_offset().
    • nnum_subrs

      public static int nnum_subrs(long struct)
      Unsafe version of num_subrs().
    • nsubrmap_offset

      public static long nsubrmap_offset(long struct)
      Unsafe version of subrmap_offset().
    • nsd_bytes

      public static int nsd_bytes(long struct)
      Unsafe version of sd_bytes().