Package org.lwjgl.util.freetype
Class FT_Face
- All Implemented Interfaces:
Pointer
struct FT_FaceRec {
FT_Long num_faces;
FT_Long face_index;
FT_Long face_flags;
FT_Long style_flags;
FT_Long num_glyphs;
FT_String * family_name;
FT_String * style_name;
FT_Int num_fixed_sizes;
{@link FT_Bitmap_Size FT_Bitmap_Size} * available_sizes;
FT_Int num_charmaps;
{@link FT_CharMap FT_CharMap} * charmaps;
{@link FT_Generic FT_Generic} generic;
{@link FT_BBox FT_BBox} bbox;
FT_UShort units_per_EM;
FT_Short ascender;
FT_Short descender;
FT_Short height;
FT_Short max_advance_width;
FT_Short max_advance_height;
FT_Short underline_position;
FT_Short underline_thickness;
{@link FT_GlyphSlot FT_GlyphSlot} glyph;
{@link FT_Size FT_Size} size;
{@link FT_CharMap FT_CharMap} charmap;
FT_Driver driver;
FT_Memory memory;
{@link FT_Stream FT_Stream} stream;
{@link FT_List FT_ListRec} sizes_list;
{@link FT_Generic FT_Generic} autohint;
void * extensions;
FT_Face_Internal internal;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionFT_Face
(ByteBuffer container) Creates aFT_Face
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionshort
ascender()
@Nullable FT_Bitmap_Size.Buffer
bbox()
@Nullable FT_CharMap
charmap()
charmaps()
static FT_Face
create
(long address) Returns a newFT_Face
instance for the specified memory address.static FT_Face.Buffer
create
(long address, int capacity) Create aFT_Face.Buffer
instance at the specified memory.static @Nullable FT_Face
createSafe
(long address) static @Nullable FT_Face.Buffer
createSafe
(long address, int capacity) short
long
long
generic()
@Nullable FT_GlyphSlot
glyph()
short
height()
short
short
static short
nascender
(long struct) Unsafe version ofascender()
.static FT_Generic
nautohint
(long struct) static @Nullable FT_Bitmap_Size.Buffer
navailable_sizes
(long struct) Unsafe version ofavailable_sizes()
.static FT_BBox
nbbox
(long struct) Unsafe version ofbbox()
.static @Nullable FT_CharMap
ncharmap
(long struct) Unsafe version ofcharmap()
.static PointerBuffer
ncharmaps
(long struct) Unsafe version ofcharmaps
.static short
ndescender
(long struct) Unsafe version ofdescender()
.static long
ndriver
(long struct) static long
nextensions
(long struct) static long
nface_flags
(long struct) Unsafe version offace_flags()
.static long
nface_index
(long struct) Unsafe version offace_index()
.static ByteBuffer
nfamily_name
(long struct) Unsafe version offamily_name()
.static String
nfamily_nameString
(long struct) Unsafe version offamily_nameString()
.static FT_Generic
ngeneric
(long struct) Unsafe version ofgeneric()
.static @Nullable FT_GlyphSlot
nglyph
(long struct) Unsafe version ofglyph()
.static short
nheight
(long struct) Unsafe version ofheight()
.static long
ninternal
(long struct) static short
nmax_advance_height
(long struct) Unsafe version ofmax_advance_height()
.static short
nmax_advance_width
(long struct) Unsafe version ofmax_advance_width()
.static @Nullable FT_Memory
nmemory
(long struct) static int
nnum_charmaps
(long struct) Unsafe version ofnum_charmaps()
.static long
nnum_faces
(long struct) Unsafe version ofnum_faces()
.static int
nnum_fixed_sizes
(long struct) Unsafe version ofnum_fixed_sizes()
.static long
nnum_glyphs
(long struct) Unsafe version ofnum_glyphs()
.static @Nullable FT_Size
nsize
(long struct) Unsafe version ofsize()
.static FT_List
nsizes_list
(long struct) static @Nullable FT_Stream
nstream$
(long struct) static long
nstyle_flags
(long struct) Unsafe version ofstyle_flags()
.static ByteBuffer
nstyle_name
(long struct) Unsafe version ofstyle_name()
.static String
nstyle_nameString
(long struct) Unsafe version ofstyle_nameString()
.int
long
int
long
static short
nunderline_position
(long struct) Unsafe version ofunderline_position()
.static short
nunderline_thickness
(long struct) Unsafe version ofunderline_thickness()
.static short
nunits_per_EM
(long struct) Unsafe version ofunits_per_EM()
.@Nullable FT_Size
size()
int
sizeof()
Returnssizeof(struct)
.long
short
short
short
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
NUM_FACES
public static final int NUM_FACESThe struct member offsets. -
FACE_INDEX
public static final int FACE_INDEXThe struct member offsets. -
FACE_FLAGS
public static final int FACE_FLAGSThe struct member offsets. -
STYLE_FLAGS
public static final int STYLE_FLAGSThe struct member offsets. -
NUM_GLYPHS
public static final int NUM_GLYPHSThe struct member offsets. -
FAMILY_NAME
public static final int FAMILY_NAMEThe struct member offsets. -
STYLE_NAME
public static final int STYLE_NAMEThe struct member offsets. -
NUM_FIXED_SIZES
public static final int NUM_FIXED_SIZESThe struct member offsets. -
AVAILABLE_SIZES
public static final int AVAILABLE_SIZESThe struct member offsets. -
NUM_CHARMAPS
public static final int NUM_CHARMAPSThe struct member offsets. -
CHARMAPS
public static final int CHARMAPSThe struct member offsets. -
GENERIC
public static final int GENERICThe struct member offsets. -
BBOX
public static final int BBOXThe struct member offsets. -
UNITS_PER_EM
public static final int UNITS_PER_EMThe struct member offsets. -
ASCENDER
public static final int ASCENDERThe struct member offsets. -
DESCENDER
public static final int DESCENDERThe struct member offsets. -
HEIGHT
public static final int HEIGHTThe struct member offsets. -
MAX_ADVANCE_WIDTH
public static final int MAX_ADVANCE_WIDTHThe struct member offsets. -
MAX_ADVANCE_HEIGHT
public static final int MAX_ADVANCE_HEIGHTThe struct member offsets. -
UNDERLINE_POSITION
public static final int UNDERLINE_POSITIONThe struct member offsets. -
UNDERLINE_THICKNESS
public static final int UNDERLINE_THICKNESSThe struct member offsets. -
GLYPH
public static final int GLYPHThe struct member offsets. -
SIZE
public static final int SIZEThe struct member offsets. -
CHARMAP
public static final int CHARMAPThe struct member offsets. -
DRIVER
public static final int DRIVERThe struct member offsets. -
MEMORY
public static final int MEMORYThe struct member offsets. -
STREAM
public static final int STREAMThe struct member offsets. -
SIZES_LIST
public static final int SIZES_LISTThe struct member offsets. -
AUTOHINT
public static final int AUTOHINTThe struct member offsets. -
EXTENSIONS
public static final int EXTENSIONSThe struct member offsets. -
INTERNAL
public static final int INTERNALThe struct member offsets.
-
-
Constructor Details
-
FT_Face
Creates aFT_Face
instance at the current position of the specifiedByteBuffer
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
Returnssizeof(struct)
. -
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.
-
create
Returns a newFT_Face
instance for the specified memory address. -
createSafe
-
create
Create aFT_Face.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
nnum_faces
public static long nnum_faces(long struct) Unsafe version ofnum_faces()
. -
nface_index
public static long nface_index(long struct) Unsafe version offace_index()
. -
nface_flags
public static long nface_flags(long struct) Unsafe version offace_flags()
. -
nstyle_flags
public static long nstyle_flags(long struct) Unsafe version ofstyle_flags()
. -
nnum_glyphs
public static long nnum_glyphs(long struct) Unsafe version ofnum_glyphs()
. -
nfamily_name
Unsafe version offamily_name()
. -
nfamily_nameString
Unsafe version offamily_nameString()
. -
nstyle_name
Unsafe version ofstyle_name()
. -
nstyle_nameString
Unsafe version ofstyle_nameString()
. -
nnum_fixed_sizes
public static int nnum_fixed_sizes(long struct) Unsafe version ofnum_fixed_sizes()
. -
nnum_charmaps
public static int nnum_charmaps(long struct) Unsafe version ofnum_charmaps()
. -
ncharmaps
Unsafe version ofcharmaps
. -
ngeneric
Unsafe version ofgeneric()
. -
nbbox
Unsafe version ofbbox()
. -
nunits_per_EM
public static short nunits_per_EM(long struct) Unsafe version ofunits_per_EM()
. -
nascender
public static short nascender(long struct) Unsafe version ofascender()
. -
ndescender
public static short ndescender(long struct) Unsafe version ofdescender()
. -
nheight
public static short nheight(long struct) Unsafe version ofheight()
. -
nmax_advance_width
public static short nmax_advance_width(long struct) Unsafe version ofmax_advance_width()
. -
nmax_advance_height
public static short nmax_advance_height(long struct) Unsafe version ofmax_advance_height()
. -
nunderline_position
public static short nunderline_position(long struct) Unsafe version ofunderline_position()
. -
nunderline_thickness
public static short nunderline_thickness(long struct) Unsafe version ofunderline_thickness()
. -
nglyph
Unsafe version ofglyph()
. -
nsize
Unsafe version ofsize()
. -
ncharmap
Unsafe version ofcharmap()
. -
ndriver
public static long ndriver(long struct) -
nmemory
-
nstream$
-
nsizes_list
-
nautohint
-
nextensions
public static long nextensions(long struct) -
ninternal
public static long ninternal(long struct)
-