Class FT_GlyphSlot

All Implemented Interfaces:
Pointer

public class FT_GlyphSlot extends Struct<FT_GlyphSlot>

 struct FT_GlyphSlotRec {
     FT_Library library;
     {@link FT_Face FT_Face} face;
     {@link FT_GlyphSlot FT_GlyphSlot} next;
     FT_UInt glyph_index;
     {@link FT_Generic FT_Generic} generic;
     {@link FT_Glyph_Metrics FT_Glyph_Metrics} metrics;
     FT_Fixed linearHoriAdvance;
     FT_Fixed linearVertAdvance;
     {@link FT_Vector FT_Vector} advance;
     FT_Glyph_Format format;
     {@link FT_Bitmap FT_Bitmap} bitmap;
     FT_Int bitmap_left;
     FT_Int bitmap_top;
     {@link FT_Outline 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 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.
    • LIBRARY Link icon

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    • FT_GlyphSlot Link icon

      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 Link icon

    • sizeof Link icon

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

      public long library()
      Returns:
      the value of the library field.
    • face Link icon

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

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

      public int glyph_index()
      Returns:
      the value of the glyph_index field.
    • generic Link icon

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

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

      public long linearHoriAdvance()
      Returns:
      the value of the linearHoriAdvance field.
    • linearVertAdvance Link icon

      public long linearVertAdvance()
      Returns:
      the value of the linearVertAdvance field.
    • advance Link icon

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

      public int format()
      Returns:
      the value of the format field.
    • bitmap Link icon

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

      public int bitmap_left()
      Returns:
      the value of the bitmap_left field.
    • bitmap_top Link icon

      public int bitmap_top()
      Returns:
      the value of the bitmap_top field.
    • outline Link icon

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

      public long lsb_delta()
      Returns:
      the value of the lsb_delta field.
    • rsb_delta Link icon

      public long rsb_delta()
      Returns:
      the value of the rsb_delta field.
    • create Link icon

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

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

      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 Link icon

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nnum_subglyphs(long struct)
    • nsubglyphs Link icon

      public static long nsubglyphs(long struct)
    • ncontrol_data Link icon

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

      public static long ncontrol_len(long struct)
    • nlsb_delta Link icon

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

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

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

      public static long ninternal(long struct)