Class FT_Face.Buffer

All Implemented Interfaces:
Iterable<FT_Face>, Pointer
Enclosing class:
FT_Face

public static class FT_Face.Buffer extends StructBuffer<FT_Face,FT_Face.Buffer>
An array of FT_Face structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new FT_Face.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by FT_Face.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • 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.