Class FT_Face

All Implemented Interfaces:
Pointer

public class FT_Face extends Struct<FT_Face>

 struct FT_FaceRec {
     FT_Long num_faces;
     FT_Long face_index;
     FT_Long face_flags;
     FT_Long style_flags;
     FT_Long num_glyphs;
     FT_String * family_name;
     FT_String * style_name;
     FT_Int num_fixed_sizes;
     {@link FT_Bitmap_Size FT_Bitmap_Size} * available_sizes;
     FT_Int num_charmaps;
     {@link FT_CharMap FT_CharMap} * charmaps;
     {@link FT_Generic FT_Generic} generic;
     {@link FT_BBox FT_BBox} bbox;
     FT_UShort units_per_EM;
     FT_Short ascender;
     FT_Short descender;
     FT_Short height;
     FT_Short max_advance_width;
     FT_Short max_advance_height;
     FT_Short underline_position;
     FT_Short underline_thickness;
     {@link FT_GlyphSlot FT_GlyphSlot} glyph;
     {@link FT_Size FT_Size} size;
     {@link FT_CharMap FT_CharMap} charmap;
     FT_Driver driver;
     FT_Memory memory;
     {@link FT_Stream FT_Stream} stream;
     {@link FT_List FT_ListRec} sizes_list;
     {@link FT_Generic FT_Generic} autohint;
     void * extensions;
     FT_Face_Internal internal;
 }
  • Field Details Link icon

    • SIZEOF Link icon

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

      public static final int ALIGNOF
      The struct alignment in bytes.
    • NUM_FACES Link icon

      public static final int NUM_FACES
      The struct member offsets.
    • FACE_INDEX Link icon

      public static final int FACE_INDEX
      The struct member offsets.
    • FACE_FLAGS Link icon

      public static final int FACE_FLAGS
      The struct member offsets.
    • STYLE_FLAGS Link icon

      public static final int STYLE_FLAGS
      The struct member offsets.
    • NUM_GLYPHS Link icon

      public static final int NUM_GLYPHS
      The struct member offsets.
    • FAMILY_NAME Link icon

      public static final int FAMILY_NAME
      The struct member offsets.
    • STYLE_NAME Link icon

      public static final int STYLE_NAME
      The struct member offsets.
    • NUM_FIXED_SIZES Link icon

      public static final int NUM_FIXED_SIZES
      The struct member offsets.
    • AVAILABLE_SIZES Link icon

      public static final int AVAILABLE_SIZES
      The struct member offsets.
    • NUM_CHARMAPS Link icon

      public static final int NUM_CHARMAPS
      The struct member offsets.
    • CHARMAPS Link icon

      public static final int CHARMAPS
      The struct member offsets.
    • GENERIC Link icon

      public static final int GENERIC
      The struct member offsets.
    • BBOX Link icon

      public static final int BBOX
      The struct member offsets.
    • UNITS_PER_EM Link icon

      public static final int UNITS_PER_EM
      The struct member offsets.
    • ASCENDER Link icon

      public static final int ASCENDER
      The struct member offsets.
    • DESCENDER Link icon

      public static final int DESCENDER
      The struct member offsets.
    • HEIGHT Link icon

      public static final int HEIGHT
      The struct member offsets.
    • MAX_ADVANCE_WIDTH Link icon

      public static final int MAX_ADVANCE_WIDTH
      The struct member offsets.
    • MAX_ADVANCE_HEIGHT Link icon

      public static final int MAX_ADVANCE_HEIGHT
      The struct member offsets.
    • UNDERLINE_POSITION Link icon

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

      public static final int UNDERLINE_THICKNESS
      The struct member offsets.
    • GLYPH Link icon

      public static final int GLYPH
      The struct member offsets.
    • SIZE Link icon

      public static final int SIZE
      The struct member offsets.
    • CHARMAP Link icon

      public static final int CHARMAP
      The struct member offsets.
    • DRIVER Link icon

      public static final int DRIVER
      The struct member offsets.
    • MEMORY Link icon

      public static final int MEMORY
      The struct member offsets.
    • STREAM Link icon

      public static final int STREAM
      The struct member offsets.
    • SIZES_LIST Link icon

      public static final int SIZES_LIST
      The struct member offsets.
    • AUTOHINT Link icon

      public static final int AUTOHINT
      The struct member offsets.
    • EXTENSIONS Link icon

      public static final int EXTENSIONS
      The struct member offsets.
    • INTERNAL Link icon

      public static final int INTERNAL
      The struct member offsets.
  • Constructor Details Link icon

    • FT_Face Link icon

      public FT_Face(ByteBuffer container)
      Creates a FT_Face 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 Link icon

    • sizeof Link icon

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<FT_Face>
    • num_faces Link icon

      public long num_faces()
      Returns:
      the value of the num_faces field.
    • face_index Link icon

      public long face_index()
      Returns:
      the value of the face_index field.
    • face_flags Link icon

      public long face_flags()
      Returns:
      the value of the face_flags field.
    • style_flags Link icon

      public long style_flags()
      Returns:
      the value of the style_flags field.
    • num_glyphs Link icon

      public long num_glyphs()
      Returns:
      the value of the num_glyphs field.
    • family_name Link icon

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

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

      public ByteBuffer style_name()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the style_name field.
    • style_nameString Link icon

      public String style_nameString()
      Returns:
      the null-terminated string pointed to by the style_name field.
    • num_fixed_sizes Link icon

      public int num_fixed_sizes()
      Returns:
      the value of the num_fixed_sizes field.
    • available_sizes Link icon

      public @Nullable FT_Bitmap_Size.Buffer available_sizes()
      Returns:
      a FT_Bitmap_Size.Buffer view of the struct array pointed to by the available_sizes field.
    • num_charmaps Link icon

      public int num_charmaps()
      Returns:
      the value of the num_charmaps field.
    • charmaps Link icon

      public PointerBuffer charmaps()
      Returns:
      a PointerBuffer view of the data pointed to by the charmaps field.
    • generic Link icon

      public FT_Generic generic()
      Returns:
      a FT_Generic view of the generic field.
    • bbox Link icon

      public FT_BBox bbox()
      Returns:
      a FT_BBox view of the bbox field.
    • units_per_EM Link icon

      public short units_per_EM()
      Returns:
      the value of the units_per_EM field.
    • ascender Link icon

      public short ascender()
      Returns:
      the value of the ascender field.
    • descender Link icon

      public short descender()
      Returns:
      the value of the descender field.
    • height Link icon

      public short height()
      Returns:
      the value of the height field.
    • max_advance_width Link icon

      public short max_advance_width()
      Returns:
      the value of the max_advance_width field.
    • max_advance_height Link icon

      public short max_advance_height()
      Returns:
      the value of the max_advance_height field.
    • underline_position Link icon

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

      public short underline_thickness()
      Returns:
      the value of the underline_thickness field.
    • glyph Link icon

      public @Nullable FT_GlyphSlot glyph()
      Returns:
      a FT_GlyphSlot view of the struct pointed to by the glyph field.
    • size Link icon

      public @Nullable FT_Size size()
      Returns:
      a FT_Size view of the struct pointed to by the size field.
    • charmap Link icon

      public @Nullable FT_CharMap charmap()
      Returns:
      a FT_CharMap view of the struct pointed to by the charmap field.
    • create Link icon

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

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

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

      public static @Nullable FT_Face.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • nnum_faces Link icon

      public static long nnum_faces(long struct)
      Unsafe version of num_faces().
    • nface_index Link icon

      public static long nface_index(long struct)
      Unsafe version of face_index().
    • nface_flags Link icon

      public static long nface_flags(long struct)
      Unsafe version of face_flags().
    • nstyle_flags Link icon

      public static long nstyle_flags(long struct)
      Unsafe version of style_flags().
    • nnum_glyphs Link icon

      public static long nnum_glyphs(long struct)
      Unsafe version of num_glyphs().
    • nfamily_name Link icon

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

      public static String nfamily_nameString(long struct)
      Unsafe version of family_nameString().
    • nstyle_name Link icon

      public static ByteBuffer nstyle_name(long struct)
      Unsafe version of style_name().
    • nstyle_nameString Link icon

      public static String nstyle_nameString(long struct)
      Unsafe version of style_nameString().
    • nnum_fixed_sizes Link icon

      public static int nnum_fixed_sizes(long struct)
      Unsafe version of num_fixed_sizes().
    • nnum_charmaps Link icon

      public static int nnum_charmaps(long struct)
      Unsafe version of num_charmaps().
    • ncharmaps Link icon

      public static PointerBuffer ncharmaps(long struct)
      Unsafe version of charmaps.
    • ngeneric Link icon

      public static FT_Generic ngeneric(long struct)
      Unsafe version of generic().
    • nbbox Link icon

      public static FT_BBox nbbox(long struct)
      Unsafe version of bbox().
    • nunits_per_EM Link icon

      public static short nunits_per_EM(long struct)
      Unsafe version of units_per_EM().
    • nascender Link icon

      public static short nascender(long struct)
      Unsafe version of ascender().
    • ndescender Link icon

      public static short ndescender(long struct)
      Unsafe version of descender().
    • nheight Link icon

      public static short nheight(long struct)
      Unsafe version of height().
    • nmax_advance_width Link icon

      public static short nmax_advance_width(long struct)
      Unsafe version of max_advance_width().
    • nmax_advance_height Link icon

      public static short nmax_advance_height(long struct)
      Unsafe version of max_advance_height().
    • nunderline_position Link icon

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

      public static short nunderline_thickness(long struct)
      Unsafe version of underline_thickness().
    • nglyph Link icon

      public static @Nullable FT_GlyphSlot nglyph(long struct)
      Unsafe version of glyph().
    • nsize Link icon

      public static @Nullable FT_Size nsize(long struct)
      Unsafe version of size().
    • ncharmap Link icon

      public static @Nullable FT_CharMap ncharmap(long struct)
      Unsafe version of charmap().
    • ndriver Link icon

      public static long ndriver(long struct)
    • nmemory Link icon

      public static @Nullable FT_Memory nmemory(long struct)
    • nstream$ Link icon

      public static @Nullable FT_Stream nstream$(long struct)
    • nsizes_list Link icon

      public static FT_List nsizes_list(long struct)
    • nautohint Link icon

      public static FT_Generic nautohint(long struct)
    • nextensions Link icon

      public static long nextensions(long struct)
    • ninternal Link icon

      public static long ninternal(long struct)