Package org.lwjgl.util.freetype
Class FT_Face.Buffer
- Enclosing class:
FT_Face
An array of
FT_Face
structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionBuffer
(long address, int cap) Buffer
(ByteBuffer container) Creates a newFT_Face.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionshort
ascender()
@Nullable FT_Bitmap_Size.Buffer
bbox()
@Nullable FT_CharMap
charmap()
charmaps()
short
long
long
generic()
@Nullable FT_GlyphSlot
glyph()
short
height()
short
short
int
long
int
long
@Nullable FT_Size
size()
long
short
short
short
Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
-
Constructor Details
-
Buffer
Creates a newFT_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
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thefamily_name
field.
-
family_nameString
- Returns:
- the null-terminated string pointed to by the
family_name
field.
-
style_name
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thestyle_name
field.
-
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
- Returns:
- a
FT_Bitmap_Size.Buffer
view of the struct array pointed to by theavailable_sizes
field.
-
num_charmaps
public int num_charmaps()- Returns:
- the value of the
num_charmaps
field.
-
charmaps
- Returns:
- a
PointerBuffer
view of the data pointed to by thecharmaps
field.
-
generic
- Returns:
- a
FT_Generic
view of thegeneric
field.
-
bbox
- Returns:
- a
FT_BBox
view of thebbox
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
- Returns:
- a
FT_GlyphSlot
view of the struct pointed to by theglyph
field.
-
size
- Returns:
- a
FT_Size
view of the struct pointed to by thesize
field.
-
charmap
- Returns:
- a
FT_CharMap
view of the struct pointed to by thecharmap
field.
-