Top Description Inners Fields Constructors Methods
org.lwjgl.util.freetype

public Class FT_Face

extends Struct<FT_Face>
Class Inheritance
Annotations
@NativeType:struct FT_FaceRec
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

FreeType root face class structure. A face object models a typeface in a font file.

Layout


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;
    FT_Bitmap_Size * available_sizes;
    FT_Int num_charmaps;
    FT_CharMap * charmaps;
    FT_Generic generic;
    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;
    FT_GlyphSlot glyph;
    FT_Size size;
    FT_CharMap charmap;
    FT_Driver driver;
    FT_Memory memory;
    FT_Stream stream;
    FT_ListRec sizes_list;
    FT_Generic autohint;
    void * extensions;
    FT_Face_Internal internal;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
FT_Face.Buffer

An array of FT_Face structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
ASCENDER

The struct member offsets.

public static final int
AUTOHINT

The struct member offsets.

public static final int
AVAILABLE_SIZES

The struct member offsets.

public static final int
BBOX

The struct member offsets.

public static final int
CHARMAP

The struct member offsets.

public static final int
CHARMAPS

The struct member offsets.

public static final int
DESCENDER

The struct member offsets.

public static final int
DRIVER

The struct member offsets.

public static final int
EXTENSIONS

The struct member offsets.

public static final int
FACE_FLAGS

The struct member offsets.

public static final int
FACE_INDEX

The struct member offsets.

public static final int
FAMILY_NAME

The struct member offsets.

public static final int
GENERIC

The struct member offsets.

public static final int
GLYPH

The struct member offsets.

public static final int
HEIGHT

The struct member offsets.

public static final int
INTERNAL

The struct member offsets.

public static final int
MAX_ADVANCE_HEIGHT

The struct member offsets.

public static final int
MAX_ADVANCE_WIDTH

The struct member offsets.

public static final int
MEMORY

The struct member offsets.

public static final int
NUM_CHARMAPS

The struct member offsets.

public static final int
NUM_FACES

The struct member offsets.

public static final int
NUM_FIXED_SIZES

The struct member offsets.

public static final int
NUM_GLYPHS

The struct member offsets.

public static final int
SIZE

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
SIZES_LIST

The struct member offsets.

public static final int
STREAM

The struct member offsets.

public static final int
STYLE_FLAGS

The struct member offsets.

public static final int
STYLE_NAME

The struct member offsets.

public static final int
UNDERLINE_POSITION

The struct member offsets.

public static final int
UNDERLINE_THICKNESS

The struct member offsets.

public static final int
UNITS_PER_EM

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
FT_Face(long address, ByteBuffer container)

public
FT_Face(ByteBuffer container)

Creates a FT_Face instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public short

Returns:

the value of the ascender field.
ascender
()

public FT_Bitmap_Size.Buffer

Returns:

a FT_Bitmap_Size.Buffer view of the struct array pointed to by the available_sizes field.
available_sizes
()

public FT_BBox

Returns:

a FT_BBox view of the bbox field.
bbox
()

public FT_CharMap

Returns:

a FT_CharMap view of the struct pointed to by the charmap field.
charmap
()

public PointerBuffer

Returns:

a PointerBuffer view of the data pointed to by the charmaps field.
charmaps
()

protected FT_Face
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static FT_Face
create(long address)

Returns a new FT_Face instance for the specified memory address.

public static FT_Face.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a FT_Face.Buffer instance at the specified memory.

public static FT_Face
createSafe(long address)

Like create, but returns null if address is NULL.

public static FT_Face.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public short

Returns:

the value of the descender field.
descender
()

public long

Returns:

the value of the face_flags field.
face_flags
()

public long

Returns:

the value of the face_index field.
face_index
()

public ByteBuffer

Returns:

a ByteBuffer view of the null-terminated string pointed to by the family_name field.
family_name
()

public String

Returns:

the null-terminated string pointed to by the family_name field.
family_nameString
()

public FT_Generic

Returns:

a FT_Generic view of the generic field.
generic
()

public FT_GlyphSlot

Returns:

a FT_GlyphSlot view of the struct pointed to by the glyph field.
glyph
()

public short

Returns:

the value of the height field.
height
()

public short

Returns:

the value of the max_advance_height field.
max_advance_height
()

public short

Returns:

the value of the max_advance_width field.
max_advance_width
()

public static short
nascender(long struct)

Unsafe version of ascender.

public static FT_Generic
nautohint(long struct)

public static FT_BBox
nbbox(long struct)

Unsafe version of bbox.

public static FT_CharMap
ncharmap(long struct)

Unsafe version of charmap.

public static PointerBuffer
ncharmaps(long struct)

Unsafe version of charmaps.

public static short
ndescender(long struct)

Unsafe version of descender.

public static long
ndriver(long struct)

public static long
nextensions(long struct)

public static long
nface_flags(long struct)

Unsafe version of face_flags.

public static long
nface_index(long struct)

Unsafe version of face_index.

public static ByteBuffer
nfamily_name(long struct)

Unsafe version of family_name.

public static String
nfamily_nameString(long struct)

Unsafe version of family_nameString.

public static FT_Generic
ngeneric(long struct)

Unsafe version of generic.

public static FT_GlyphSlot
nglyph(long struct)

Unsafe version of glyph.

public static short
nheight(long struct)

Unsafe version of height.

public static long
ninternal(long struct)

public static short
nmax_advance_height(long struct)

Unsafe version of max_advance_height.

public static short
nmax_advance_width(long struct)

Unsafe version of max_advance_width.

public static FT_Memory
nmemory(long struct)

public static int
nnum_charmaps(long struct)

Unsafe version of num_charmaps.

public static long
nnum_faces(long struct)

Unsafe version of num_faces.

public static int
nnum_fixed_sizes(long struct)

Unsafe version of num_fixed_sizes.

public static long
nnum_glyphs(long struct)

Unsafe version of num_glyphs.

public static FT_Size
nsize(long struct)

Unsafe version of size.

public static FT_List
nsizes_list(long struct)

public static FT_Stream
nstream$(long struct)

public static long
nstyle_flags(long struct)

Unsafe version of style_flags.

public static ByteBuffer
nstyle_name(long struct)

Unsafe version of style_name.

public static String
nstyle_nameString(long struct)

Unsafe version of style_nameString.

public int

Returns:

the value of the num_charmaps field.
num_charmaps
()

public long

Returns:

the value of the num_faces field.
num_faces
()

public int

Returns:

the value of the num_fixed_sizes field.
num_fixed_sizes
()

public long

Returns:

the value of the num_glyphs field.
num_glyphs
()

public static short
nunderline_position(long struct)

Unsafe version of underline_position.

public static short
nunderline_thickness(long struct)

Unsafe version of underline_thickness.

public static short
nunits_per_EM(long struct)

Unsafe version of units_per_EM.

public FT_Size

Returns:

a FT_Size view of the struct pointed to by the size field.
size
()

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public long

Returns:

the value of the style_flags field.
style_flags
()

public ByteBuffer

Returns:

a ByteBuffer view of the null-terminated string pointed to by the style_name field.
style_name
()

public String

Returns:

the null-terminated string pointed to by the style_name field.
style_nameString
()

public short

Returns:

the value of the underline_position field.
underline_position
()

public short

Returns:

the value of the underline_thickness field.
underline_thickness
()

public short

Returns:

the value of the units_per_EM field.
units_per_EM
()

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate