Class FT_Glyph_Metrics

All Implemented Interfaces:
Pointer

public class FT_Glyph_Metrics extends Struct<FT_Glyph_Metrics>

 struct FT_Glyph_Metrics {
     FT_Pos width;
     FT_Pos height;
     FT_Pos horiBearingX;
     FT_Pos horiBearingY;
     FT_Pos horiAdvance;
     FT_Pos vertBearingX;
     FT_Pos vertBearingY;
     FT_Pos vertAdvance;
 }
  • Field Details

    • SIZEOF

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

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

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

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

      public static final int HORIBEARINGX
      The struct member offsets.
    • HORIBEARINGY

      public static final int HORIBEARINGY
      The struct member offsets.
    • HORIADVANCE

      public static final int HORIADVANCE
      The struct member offsets.
    • VERTBEARINGX

      public static final int VERTBEARINGX
      The struct member offsets.
    • VERTBEARINGY

      public static final int VERTBEARINGY
      The struct member offsets.
    • VERTADVANCE

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

    • FT_Glyph_Metrics

      public FT_Glyph_Metrics(ByteBuffer container)
      Creates a FT_Glyph_Metrics 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_Metrics>
    • width

      public long width()
      Returns:
      the value of the width field.
    • height

      public long height()
      Returns:
      the value of the height field.
    • horiBearingX

      public long horiBearingX()
      Returns:
      the value of the horiBearingX field.
    • horiBearingY

      public long horiBearingY()
      Returns:
      the value of the horiBearingY field.
    • horiAdvance

      public long horiAdvance()
      Returns:
      the value of the horiAdvance field.
    • vertBearingX

      public long vertBearingX()
      Returns:
      the value of the vertBearingX field.
    • vertBearingY

      public long vertBearingY()
      Returns:
      the value of the vertBearingY field.
    • vertAdvance

      public long vertAdvance()
      Returns:
      the value of the vertAdvance field.
    • create

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

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

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

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

      public static long nwidth(long struct)
      Unsafe version of width().
    • nheight

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

      public static long nhoriBearingX(long struct)
      Unsafe version of horiBearingX().
    • nhoriBearingY

      public static long nhoriBearingY(long struct)
      Unsafe version of horiBearingY().
    • nhoriAdvance

      public static long nhoriAdvance(long struct)
      Unsafe version of horiAdvance().
    • nvertBearingX

      public static long nvertBearingX(long struct)
      Unsafe version of vertBearingX().
    • nvertBearingY

      public static long nvertBearingY(long struct)
      Unsafe version of vertBearingY().
    • nvertAdvance

      public static long nvertAdvance(long struct)
      Unsafe version of vertAdvance().