Class CID_FaceInfo

All Implemented Interfaces:
Pointer

public class CID_FaceInfo extends Struct<CID_FaceInfo>

 struct CID_FaceInfoRec {
     FT_String * cid_font_name;
     FT_Fixed cid_version;
     FT_Int cid_font_type;
     FT_String * registry;
     FT_String * ordering;
     FT_Int supplement;
     {@link PS_FontInfo PS_FontInfoRec} font_info;
     {@link FT_BBox FT_BBox} font_bbox;
     FT_ULong uid_base;
     FT_Int num_xuid;
     FT_ULong xuid[16];
     FT_ULong cidmap_offset;
     FT_UInt fd_bytes;
     FT_UInt gd_bytes;
     FT_ULong cid_count;
     FT_UInt num_dicts;
     {@link CID_FaceDict CID_FaceDict} font_dicts;
     FT_ULong data_offset;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int CID_FONT_NAME
      The struct member offsets.
    • CID_VERSION

      public static final int CID_VERSION
      The struct member offsets.
    • CID_FONT_TYPE

      public static final int CID_FONT_TYPE
      The struct member offsets.
    • REGISTRY

      public static final int REGISTRY
      The struct member offsets.
    • ORDERING

      public static final int ORDERING
      The struct member offsets.
    • SUPPLEMENT

      public static final int SUPPLEMENT
      The struct member offsets.
    • FONT_INFO

      public static final int FONT_INFO
      The struct member offsets.
    • FONT_BBOX

      public static final int FONT_BBOX
      The struct member offsets.
    • UID_BASE

      public static final int UID_BASE
      The struct member offsets.
    • NUM_XUID

      public static final int NUM_XUID
      The struct member offsets.
    • XUID

      public static final int XUID
      The struct member offsets.
    • CIDMAP_OFFSET

      public static final int CIDMAP_OFFSET
      The struct member offsets.
    • FD_BYTES

      public static final int FD_BYTES
      The struct member offsets.
    • GD_BYTES

      public static final int GD_BYTES
      The struct member offsets.
    • CID_COUNT

      public static final int CID_COUNT
      The struct member offsets.
    • NUM_DICTS

      public static final int NUM_DICTS
      The struct member offsets.
    • FONT_DICTS

      public static final int FONT_DICTS
      The struct member offsets.
    • DATA_OFFSET

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

    • CID_FaceInfo

      public CID_FaceInfo(ByteBuffer container)
      Creates a CID_FaceInfo 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_FaceInfo>
    • cid_font_name

      public ByteBuffer cid_font_name()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the cid_font_name field.
    • cid_font_nameString

      public String cid_font_nameString()
      Returns:
      the null-terminated string pointed to by the cid_font_name field.
    • cid_version

      public long cid_version()
      Returns:
      the value of the cid_version field.
    • cid_font_type

      public int cid_font_type()
      Returns:
      the value of the cid_font_type field.
    • registry

      public ByteBuffer registry()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the registry field.
    • registryString

      public String registryString()
      Returns:
      the null-terminated string pointed to by the registry field.
    • ordering

      public ByteBuffer ordering()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the ordering field.
    • orderingString

      public String orderingString()
      Returns:
      the null-terminated string pointed to by the ordering field.
    • supplement

      public int supplement()
      Returns:
      the value of the supplement field.
    • font_info

      public PS_FontInfo font_info()
      Returns:
      a PS_FontInfo view of the font_info field.
    • font_bbox

      public FT_BBox font_bbox()
      Returns:
      a FT_BBox view of the font_bbox field.
    • uid_base

      public long uid_base()
      Returns:
      the value of the uid_base field.
    • num_xuid

      public int num_xuid()
      Returns:
      the value of the num_xuid field.
    • xuid

      public CLongBuffer xuid()
      Returns:
      a CLongBuffer view of the xuid field.
    • xuid

      public long xuid(int index)
      Returns:
      the value at the specified index of the xuid field.
    • cidmap_offset

      public long cidmap_offset()
      Returns:
      the value of the cidmap_offset field.
    • fd_bytes

      public int fd_bytes()
      Returns:
      the value of the fd_bytes field.
    • gd_bytes

      public int gd_bytes()
      Returns:
      the value of the gd_bytes field.
    • cid_count

      public long cid_count()
      Returns:
      the value of the cid_count field.
    • num_dicts

      public int num_dicts()
      Returns:
      the value of the num_dicts field.
    • font_dicts

      public CID_FaceDict font_dicts()
      Returns:
      a CID_FaceDict view of the struct pointed to by the font_dicts field.
    • data_offset

      public long data_offset()
      Returns:
      the value of the data_offset field.
    • create

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

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

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

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

      public static ByteBuffer ncid_font_name(long struct)
      Unsafe version of cid_font_name().
    • ncid_font_nameString

      public static String ncid_font_nameString(long struct)
      Unsafe version of cid_font_nameString().
    • ncid_version

      public static long ncid_version(long struct)
      Unsafe version of cid_version().
    • ncid_font_type

      public static int ncid_font_type(long struct)
      Unsafe version of cid_font_type().
    • nregistry

      public static ByteBuffer nregistry(long struct)
      Unsafe version of registry().
    • nregistryString

      public static String nregistryString(long struct)
      Unsafe version of registryString().
    • nordering

      public static ByteBuffer nordering(long struct)
      Unsafe version of ordering().
    • norderingString

      public static String norderingString(long struct)
      Unsafe version of orderingString().
    • nsupplement

      public static int nsupplement(long struct)
      Unsafe version of supplement().
    • nfont_info

      public static PS_FontInfo nfont_info(long struct)
      Unsafe version of font_info().
    • nfont_bbox

      public static FT_BBox nfont_bbox(long struct)
      Unsafe version of font_bbox().
    • nuid_base

      public static long nuid_base(long struct)
      Unsafe version of uid_base().
    • nnum_xuid

      public static int nnum_xuid(long struct)
      Unsafe version of num_xuid().
    • nxuid

      public static CLongBuffer nxuid(long struct)
      Unsafe version of xuid().
    • nxuid

      public static long nxuid(long struct, int index)
      Unsafe version of xuid.
    • ncidmap_offset

      public static long ncidmap_offset(long struct)
      Unsafe version of cidmap_offset().
    • nfd_bytes

      public static int nfd_bytes(long struct)
      Unsafe version of fd_bytes().
    • ngd_bytes

      public static int ngd_bytes(long struct)
      Unsafe version of gd_bytes().
    • ncid_count

      public static long ncid_count(long struct)
      Unsafe version of cid_count().
    • nnum_dicts

      public static int nnum_dicts(long struct)
      Unsafe version of num_dicts().
    • nfont_dicts

      public static CID_FaceDict nfont_dicts(long struct)
      Unsafe version of font_dicts().
    • ndata_offset

      public static long ndata_offset(long struct)
      Unsafe version of data_offset().