Class PS_Private

All Implemented Interfaces:
Pointer

public class PS_Private extends Struct<PS_Private>

 struct PS_PrivateRec {
     FT_Int unique_id;
     FT_Int lenIV;
     FT_Byte num_blue_values;
     FT_Byte num_other_blues;
     FT_Byte num_family_blues;
     FT_Byte num_family_other_blues;
     FT_Short blue_values[14];
     FT_Short other_blues[10];
     FT_Short family_blues[14];
     FT_Short family_other_blues[10];
     FT_Fixed blue_scale;
     FT_Int blue_shift;
     FT_Int blue_fuzz;
     FT_UShort standard_width[1];
     FT_UShort standard_height[1];
     FT_Byte num_snap_widths;
     FT_Byte num_snap_heights;
     FT_Bool force_bold;
     FT_Bool round_stem_up;
     FT_Short snap_widths[13];
     FT_Short snap_heights[13];
     FT_Fixed expansion_factor;
     FT_Long language_group;
     FT_Long password;
     FT_Short min_feature[2];
 }
  • Field Details

    • SIZEOF

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

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

      public static final int UNIQUE_ID
      The struct member offsets.
    • LENIV

      public static final int LENIV
      The struct member offsets.
    • NUM_BLUE_VALUES

      public static final int NUM_BLUE_VALUES
      The struct member offsets.
    • NUM_OTHER_BLUES

      public static final int NUM_OTHER_BLUES
      The struct member offsets.
    • NUM_FAMILY_BLUES

      public static final int NUM_FAMILY_BLUES
      The struct member offsets.
    • NUM_FAMILY_OTHER_BLUES

      public static final int NUM_FAMILY_OTHER_BLUES
      The struct member offsets.
    • BLUE_VALUES

      public static final int BLUE_VALUES
      The struct member offsets.
    • OTHER_BLUES

      public static final int OTHER_BLUES
      The struct member offsets.
    • FAMILY_BLUES

      public static final int FAMILY_BLUES
      The struct member offsets.
    • FAMILY_OTHER_BLUES

      public static final int FAMILY_OTHER_BLUES
      The struct member offsets.
    • BLUE_SCALE

      public static final int BLUE_SCALE
      The struct member offsets.
    • BLUE_SHIFT

      public static final int BLUE_SHIFT
      The struct member offsets.
    • BLUE_FUZZ

      public static final int BLUE_FUZZ
      The struct member offsets.
    • STANDARD_WIDTH

      public static final int STANDARD_WIDTH
      The struct member offsets.
    • STANDARD_HEIGHT

      public static final int STANDARD_HEIGHT
      The struct member offsets.
    • NUM_SNAP_WIDTHS

      public static final int NUM_SNAP_WIDTHS
      The struct member offsets.
    • NUM_SNAP_HEIGHTS

      public static final int NUM_SNAP_HEIGHTS
      The struct member offsets.
    • FORCE_BOLD

      public static final int FORCE_BOLD
      The struct member offsets.
    • ROUND_STEM_UP

      public static final int ROUND_STEM_UP
      The struct member offsets.
    • SNAP_WIDTHS

      public static final int SNAP_WIDTHS
      The struct member offsets.
    • SNAP_HEIGHTS

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

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

      public static final int LANGUAGE_GROUP
      The struct member offsets.
    • PASSWORD

      public static final int PASSWORD
      The struct member offsets.
    • MIN_FEATURE

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

    • PS_Private

      public PS_Private(ByteBuffer container)
      Creates a PS_Private 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_Private>
    • unique_id

      public int unique_id()
      Returns:
      the value of the unique_id field.
    • lenIV

      public int lenIV()
      Returns:
      the value of the lenIV field.
    • num_blue_values

      public byte num_blue_values()
      Returns:
      the value of the num_blue_values field.
    • num_other_blues

      public byte num_other_blues()
      Returns:
      the value of the num_other_blues field.
    • num_family_blues

      public byte num_family_blues()
      Returns:
      the value of the num_family_blues field.
    • num_family_other_blues

      public byte num_family_other_blues()
      Returns:
      the value of the num_family_other_blues field.
    • blue_values

      public ShortBuffer blue_values()
      Returns:
      a ShortBuffer view of the blue_values field.
    • blue_values

      public short blue_values(int index)
      Returns:
      the value at the specified index of the blue_values field.
    • other_blues

      public ShortBuffer other_blues()
      Returns:
      a ShortBuffer view of the other_blues field.
    • other_blues

      public short other_blues(int index)
      Returns:
      the value at the specified index of the other_blues field.
    • family_blues

      public ShortBuffer family_blues()
      Returns:
      a ShortBuffer view of the family_blues field.
    • family_blues

      public short family_blues(int index)
      Returns:
      the value at the specified index of the family_blues field.
    • family_other_blues

      public ShortBuffer family_other_blues()
      Returns:
      a ShortBuffer view of the family_other_blues field.
    • family_other_blues

      public short family_other_blues(int index)
      Returns:
      the value at the specified index of the family_other_blues field.
    • blue_scale

      public long blue_scale()
      Returns:
      the value of the blue_scale field.
    • blue_shift

      public int blue_shift()
      Returns:
      the value of the blue_shift field.
    • blue_fuzz

      public int blue_fuzz()
      Returns:
      the value of the blue_fuzz field.
    • standard_width

      public ShortBuffer standard_width()
      Returns:
      a ShortBuffer view of the standard_width field.
    • standard_width

      public short standard_width(int index)
      Returns:
      the value at the specified index of the standard_width field.
    • standard_height

      public ShortBuffer standard_height()
      Returns:
      a ShortBuffer view of the standard_height field.
    • standard_height

      public short standard_height(int index)
      Returns:
      the value at the specified index of the standard_height field.
    • num_snap_widths

      public byte num_snap_widths()
      Returns:
      the value of the num_snap_widths field.
    • num_snap_heights

      public byte num_snap_heights()
      Returns:
      the value of the num_snap_heights field.
    • force_bold

      public boolean force_bold()
      Returns:
      the value of the force_bold field.
    • round_stem_up

      public boolean round_stem_up()
      Returns:
      the value of the round_stem_up field.
    • snap_widths

      public ShortBuffer snap_widths()
      Returns:
      a ShortBuffer view of the snap_widths field.
    • snap_widths

      public short snap_widths(int index)
      Returns:
      the value at the specified index of the snap_widths field.
    • snap_heights

      public ShortBuffer snap_heights()
      Returns:
      a ShortBuffer view of the snap_heights field.
    • snap_heights

      public short snap_heights(int index)
      Returns:
      the value at the specified index of the snap_heights field.
    • expansion_factor

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

      public long language_group()
      Returns:
      the value of the language_group field.
    • password

      public long password()
      Returns:
      the value of the password field.
    • min_feature

      public ShortBuffer min_feature()
      Returns:
      a ShortBuffer view of the min_feature field.
    • min_feature

      public short min_feature(int index)
      Returns:
      the value at the specified index of the min_feature field.
    • create

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

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

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

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

      public static int nunique_id(long struct)
      Unsafe version of unique_id().
    • nlenIV

      public static int nlenIV(long struct)
      Unsafe version of lenIV().
    • nnum_blue_values

      public static byte nnum_blue_values(long struct)
      Unsafe version of num_blue_values().
    • nnum_other_blues

      public static byte nnum_other_blues(long struct)
      Unsafe version of num_other_blues().
    • nnum_family_blues

      public static byte nnum_family_blues(long struct)
      Unsafe version of num_family_blues().
    • nnum_family_other_blues

      public static byte nnum_family_other_blues(long struct)
      Unsafe version of num_family_other_blues().
    • nblue_values

      public static ShortBuffer nblue_values(long struct)
      Unsafe version of blue_values().
    • nblue_values

      public static short nblue_values(long struct, int index)
      Unsafe version of blue_values.
    • nother_blues

      public static ShortBuffer nother_blues(long struct)
      Unsafe version of other_blues().
    • nother_blues

      public static short nother_blues(long struct, int index)
      Unsafe version of other_blues.
    • nfamily_blues

      public static ShortBuffer nfamily_blues(long struct)
      Unsafe version of family_blues().
    • nfamily_blues

      public static short nfamily_blues(long struct, int index)
      Unsafe version of family_blues.
    • nfamily_other_blues

      public static ShortBuffer nfamily_other_blues(long struct)
      Unsafe version of family_other_blues().
    • nfamily_other_blues

      public static short nfamily_other_blues(long struct, int index)
      Unsafe version of family_other_blues.
    • nblue_scale

      public static long nblue_scale(long struct)
      Unsafe version of blue_scale().
    • nblue_shift

      public static int nblue_shift(long struct)
      Unsafe version of blue_shift().
    • nblue_fuzz

      public static int nblue_fuzz(long struct)
      Unsafe version of blue_fuzz().
    • nstandard_width

      public static ShortBuffer nstandard_width(long struct)
      Unsafe version of standard_width().
    • nstandard_width

      public static short nstandard_width(long struct, int index)
      Unsafe version of standard_width.
    • nstandard_height

      public static ShortBuffer nstandard_height(long struct)
      Unsafe version of standard_height().
    • nstandard_height

      public static short nstandard_height(long struct, int index)
      Unsafe version of standard_height.
    • nnum_snap_widths

      public static byte nnum_snap_widths(long struct)
      Unsafe version of num_snap_widths().
    • nnum_snap_heights

      public static byte nnum_snap_heights(long struct)
      Unsafe version of num_snap_heights().
    • nforce_bold

      public static boolean nforce_bold(long struct)
      Unsafe version of force_bold().
    • nround_stem_up

      public static boolean nround_stem_up(long struct)
      Unsafe version of round_stem_up().
    • nsnap_widths

      public static ShortBuffer nsnap_widths(long struct)
      Unsafe version of snap_widths().
    • nsnap_widths

      public static short nsnap_widths(long struct, int index)
      Unsafe version of snap_widths.
    • nsnap_heights

      public static ShortBuffer nsnap_heights(long struct)
      Unsafe version of snap_heights().
    • nsnap_heights

      public static short nsnap_heights(long struct, int index)
      Unsafe version of snap_heights.
    • nexpansion_factor

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

      public static long nlanguage_group(long struct)
      Unsafe version of language_group().
    • npassword

      public static long npassword(long struct)
      Unsafe version of password().
    • nmin_feature

      public static ShortBuffer nmin_feature(long struct)
      Unsafe version of min_feature().
    • nmin_feature

      public static short nmin_feature(long struct, int index)
      Unsafe version of min_feature.