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

    • SIZEOF

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static final int MAX_ADVANCE_HEIGHT
      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.
    • GLYPH

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

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

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

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

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

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

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

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

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

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

    • FT_Face

      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

    • sizeof

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

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

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

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

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

      public long num_glyphs()
      Returns:
      the value of the num_glyphs 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.
    • style_name

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

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

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

      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

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

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

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

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

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

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

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

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

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

      public short max_advance_height()
      Returns:
      the value of the max_advance_height 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.
    • glyph

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

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

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

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

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

      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

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

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

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

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

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

      public static long nnum_glyphs(long struct)
      Unsafe version of num_glyphs().
    • 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().
    • nstyle_name

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

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

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

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

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

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

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

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

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

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

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

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

      public static short nmax_advance_height(long struct)
      Unsafe version of max_advance_height().
    • 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().
    • nglyph

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

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

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

      public static long ndriver(long struct)
    • nmemory

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

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

      public static FT_List nsizes_list(long struct)
    • nautohint

      public static FT_Generic nautohint(long struct)
    • nextensions

      public static long nextensions(long struct)
    • ninternal

      public static long ninternal(long struct)