Class FT_Glyph

All Implemented Interfaces:
Pointer

public class FT_Glyph extends Struct<FT_Glyph>

 struct FT_GlyphRec {
     FT_Library library;
     FT_Glyph_Class const * clazz;
     FT_Glyph_Format format;
     {@link FT_Vector FT_Vector} advance;
 }
  • 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.
    • CLAZZ

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

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

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

    • FT_Glyph

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

      public long library()
      Returns:
      the value of the library field.
    • format

      public int format()
      Returns:
      the value of the format field.
    • advance

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

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

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

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

      public static @Nullable FT_Glyph.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().
    • nclazz

      public static long nclazz(long struct)
    • nformat

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

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