Class PS_FontInfo

All Implemented Interfaces:
Pointer

public class PS_FontInfo extends Struct<PS_FontInfo>

 struct PS_FontInfoRec {
     FT_String * version;
     FT_String * notice;
     FT_String * full_name;
     FT_String * family_name;
     FT_String * weight;
     FT_Long italic_angle;
     FT_Bool is_fixed_pitch;
     FT_Short underline_position;
     FT_UShort underline_thickness;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int VERSION
      The struct member offsets.
    • NOTICE

      public static final int NOTICE
      The struct member offsets.
    • FULL_NAME

      public static final int FULL_NAME
      The struct member offsets.
    • FAMILY_NAME

      public static final int FAMILY_NAME
      The struct member offsets.
    • WEIGHT

      public static final int WEIGHT
      The struct member offsets.
    • ITALIC_ANGLE

      public static final int ITALIC_ANGLE
      The struct member offsets.
    • IS_FIXED_PITCH

      public static final int IS_FIXED_PITCH
      The struct member offsets.
    • UNDERLINE_POSITION

      public static final int UNDERLINE_POSITION
      The struct member offsets.
    • UNDERLINE_THICKNESS

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

    • PS_FontInfo

      public PS_FontInfo(ByteBuffer container)
      Creates a PS_FontInfo 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<PS_FontInfo>
    • version

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

      public String versionString()
      Returns:
      the null-terminated string pointed to by the version field.
    • notice

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

      public String noticeString()
      Returns:
      the null-terminated string pointed to by the notice field.
    • full_name

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

      public String full_nameString()
      Returns:
      the null-terminated string pointed to by the full_name field.
    • family_name

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

      public String family_nameString()
      Returns:
      the null-terminated string pointed to by the family_name field.
    • weight

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

      public String weightString()
      Returns:
      the null-terminated string pointed to by the weight field.
    • italic_angle

      public long italic_angle()
      Returns:
      the value of the italic_angle field.
    • is_fixed_pitch

      public boolean is_fixed_pitch()
      Returns:
      the value of the is_fixed_pitch field.
    • underline_position

      public short underline_position()
      Returns:
      the value of the underline_position field.
    • underline_thickness

      public short underline_thickness()
      Returns:
      the value of the underline_thickness field.
    • create

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

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

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

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

      public static ByteBuffer nversion(long struct)
      Unsafe version of version().
    • nversionString

      public static String nversionString(long struct)
      Unsafe version of versionString().
    • nnotice

      public static ByteBuffer nnotice(long struct)
      Unsafe version of notice().
    • nnoticeString

      public static String nnoticeString(long struct)
      Unsafe version of noticeString().
    • nfull_name

      public static ByteBuffer nfull_name(long struct)
      Unsafe version of full_name().
    • nfull_nameString

      public static String nfull_nameString(long struct)
      Unsafe version of full_nameString().
    • nfamily_name

      public static ByteBuffer nfamily_name(long struct)
      Unsafe version of family_name().
    • nfamily_nameString

      public static String nfamily_nameString(long struct)
      Unsafe version of family_nameString().
    • nweight

      public static ByteBuffer nweight(long struct)
      Unsafe version of weight().
    • nweightString

      public static String nweightString(long struct)
      Unsafe version of weightString().
    • nitalic_angle

      public static long nitalic_angle(long struct)
      Unsafe version of italic_angle().
    • nis_fixed_pitch

      public static boolean nis_fixed_pitch(long struct)
      Unsafe version of is_fixed_pitch().
    • nunderline_position

      public static short nunderline_position(long struct)
      Unsafe version of underline_position().
    • nunderline_thickness

      public static short nunderline_thickness(long struct)
      Unsafe version of underline_thickness().