Class FT_GlyphSlot

All Implemented Interfaces:
Pointer

@NativeType("struct FT_GlyphSlotRec") public class FT_GlyphSlot extends Struct<FT_GlyphSlot>
struct FT_GlyphSlotRec {
    FT_Library library;
    FT_Face face;
    FT_GlyphSlot next;
    FT_UInt glyph_index;
    FT_Generic generic;
    FT_Glyph_Metrics metrics;
    FT_Fixed linearHoriAdvance;
    FT_Fixed linearVertAdvance;
    FT_Vector advance;
    FT_Glyph_Format format;
    FT_Bitmap bitmap;
    FT_Int bitmap_left;
    FT_Int bitmap_top;
    FT_Outline outline;
    FT_UInt num_subglyphs;
    FT_SubGlyph subglyphs;
    void * control_data;
    long control_len;
    FT_Pos lsb_delta;
    FT_Pos rsb_delta;
    void * other;
    FT_Slot_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.
    • LIBRARY

      public static final int LIBRARY
      The struct member offsets.
    • FACE

      public static final int FACE
      The struct member offsets.
    • NEXT

      public static final int NEXT
      The struct member offsets.
    • GLYPH_INDEX

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

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

      public static final int METRICS
      The struct member offsets.
    • LINEARHORIADVANCE

      public static final int LINEARHORIADVANCE
      The struct member offsets.
    • LINEARVERTADVANCE

      public static final int LINEARVERTADVANCE
      The struct member offsets.
    • ADVANCE

      public static final int ADVANCE
      The struct member offsets.
    • FORMAT

      public static final int FORMAT
      The struct member offsets.
    • BITMAP

      public static final int BITMAP
      The struct member offsets.
    • BITMAP_LEFT

      public static final int BITMAP_LEFT
      The struct member offsets.
    • BITMAP_TOP

      public static final int BITMAP_TOP
      The struct member offsets.
    • OUTLINE

      public static final int OUTLINE
      The struct member offsets.
    • NUM_SUBGLYPHS

      public static final int NUM_SUBGLYPHS
      The struct member offsets.
    • SUBGLYPHS

      public static final int SUBGLYPHS
      The struct member offsets.
    • CONTROL_DATA

      public static final int CONTROL_DATA
      The struct member offsets.
    • CONTROL_LEN

      public static final int CONTROL_LEN
      The struct member offsets.
    • LSB_DELTA

      public static final int LSB_DELTA
      The struct member offsets.
    • RSB_DELTA

      public static final int RSB_DELTA
      The struct member offsets.
    • OTHER

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

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

    • FT_GlyphSlot

      public FT_GlyphSlot(ByteBuffer container)
      Creates a FT_GlyphSlot 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_GlyphSlot>
    • library

      @NativeType("FT_Library") public long library()
      Returns:
      the value of the library field.
    • face

      public FT_Face face()
      Returns:
      a FT_Face view of the struct pointed to by the face field.
    • next

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

      @NativeType("FT_UInt") public int glyph_index()
      Returns:
      the value of the glyph_index field.
    • generic

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

      public FT_Glyph_Metrics metrics()
      Returns:
      a FT_Glyph_Metrics view of the metrics field.
    • linearHoriAdvance

      @NativeType("FT_Fixed") public long linearHoriAdvance()
      Returns:
      the value of the linearHoriAdvance field.
    • linearVertAdvance

      @NativeType("FT_Fixed") public long linearVertAdvance()
      Returns:
      the value of the linearVertAdvance field.
    • advance

      public FT_Vector advance()
      Returns:
      a FT_Vector view of the advance field.
    • format

      @NativeType("FT_Glyph_Format") public int format()
      Returns:
      the value of the format field.
    • bitmap

      public FT_Bitmap bitmap()
      Returns:
      a FT_Bitmap view of the bitmap field.
    • bitmap_left

      @NativeType("FT_Int") public int bitmap_left()
      Returns:
      the value of the bitmap_left field.
    • bitmap_top

      @NativeType("FT_Int") public int bitmap_top()
      Returns:
      the value of the bitmap_top field.
    • outline

      public FT_Outline outline()
      Returns:
      a FT_Outline view of the outline field.
    • lsb_delta

      @NativeType("FT_Pos") public long lsb_delta()
      Returns:
      the value of the lsb_delta field.
    • rsb_delta

      @NativeType("FT_Pos") public long rsb_delta()
      Returns:
      the value of the rsb_delta field.
    • create

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

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

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

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

      public static long nlibrary(long struct)
      Unsafe version of library().
    • nface

      public static FT_Face nface(long struct)
      Unsafe version of face().
    • nnext

      public static @Nullable FT_GlyphSlot nnext(long struct)
      Unsafe version of next().
    • nglyph_index

      public static int nglyph_index(long struct)
      Unsafe version of glyph_index().
    • ngeneric

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

      public static FT_Glyph_Metrics nmetrics(long struct)
      Unsafe version of metrics().
    • nlinearHoriAdvance

      public static long nlinearHoriAdvance(long struct)
      Unsafe version of linearHoriAdvance().
    • nlinearVertAdvance

      public static long nlinearVertAdvance(long struct)
      Unsafe version of linearVertAdvance().
    • nadvance

      public static FT_Vector nadvance(long struct)
      Unsafe version of advance().
    • nformat

      public static int nformat(long struct)
      Unsafe version of format().
    • nbitmap

      public static FT_Bitmap nbitmap(long struct)
      Unsafe version of bitmap().
    • nbitmap_left

      public static int nbitmap_left(long struct)
      Unsafe version of bitmap_left().
    • nbitmap_top

      public static int nbitmap_top(long struct)
      Unsafe version of bitmap_top().
    • noutline

      public static FT_Outline noutline(long struct)
      Unsafe version of outline().
    • nnum_subglyphs

      public static int nnum_subglyphs(long struct)
    • nsubglyphs

      public static long nsubglyphs(long struct)
    • ncontrol_data

      public static @Nullable ByteBuffer ncontrol_data(long struct)
    • ncontrol_len

      public static long ncontrol_len(long struct)
    • nlsb_delta

      public static long nlsb_delta(long struct)
      Unsafe version of lsb_delta().
    • nrsb_delta

      public static long nrsb_delta(long struct)
      Unsafe version of rsb_delta().
    • nother

      public static long nother(long struct)
    • ninternal

      public static long ninternal(long struct)