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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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_Faceinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionshortascender()@Nullable FT_Bitmap_Size.Bufferbbox()@Nullable FT_CharMapcharmap()charmaps()static FT_Facecreate(long address) Returns a newFT_Faceinstance for the specified memory address.static FT_Face.Buffercreate(long address, int capacity) Create aFT_Face.Bufferinstance at the specified memory.static @Nullable FT_FacecreateSafe(long address) static @Nullable FT_Face.BuffercreateSafe(long address, int capacity) shortlonglonggeneric()@Nullable FT_GlyphSlotglyph()shortheight()shortshortstatic shortnascender(long struct) Unsafe version ofascender().static FT_Genericnautohint(long struct) static @Nullable FT_Bitmap_Size.Buffernavailable_sizes(long struct) Unsafe version ofavailable_sizes().static FT_BBoxnbbox(long struct) Unsafe version ofbbox().static @Nullable FT_CharMapncharmap(long struct) Unsafe version ofcharmap().static PointerBufferncharmaps(long struct) Unsafe version ofcharmaps.static shortndescender(long struct) Unsafe version ofdescender().static longndriver(long struct) static longnextensions(long struct) static longnface_flags(long struct) Unsafe version offace_flags().static longnface_index(long struct) Unsafe version offace_index().static ByteBuffernfamily_name(long struct) Unsafe version offamily_name().static Stringnfamily_nameString(long struct) Unsafe version offamily_nameString().static FT_Genericngeneric(long struct) Unsafe version ofgeneric().static @Nullable FT_GlyphSlotnglyph(long struct) Unsafe version ofglyph().static shortnheight(long struct) Unsafe version ofheight().static longninternal(long struct) static shortnmax_advance_height(long struct) Unsafe version ofmax_advance_height().static shortnmax_advance_width(long struct) Unsafe version ofmax_advance_width().static @Nullable FT_Memorynmemory(long struct) static intnnum_charmaps(long struct) Unsafe version ofnum_charmaps().static longnnum_faces(long struct) Unsafe version ofnum_faces().static intnnum_fixed_sizes(long struct) Unsafe version ofnum_fixed_sizes().static longnnum_glyphs(long struct) Unsafe version ofnum_glyphs().static @Nullable FT_Sizensize(long struct) Unsafe version ofsize().static FT_Listnsizes_list(long struct) static @Nullable FT_Streamnstream$(long struct) static longnstyle_flags(long struct) Unsafe version ofstyle_flags().static ByteBuffernstyle_name(long struct) Unsafe version ofstyle_name().static Stringnstyle_nameString(long struct) Unsafe version ofstyle_nameString().intlongintlongstatic shortnunderline_position(long struct) Unsafe version ofunderline_position().static shortnunderline_thickness(long struct) Unsafe version ofunderline_thickness().static shortnunits_per_EM(long struct) Unsafe version ofunits_per_EM().@Nullable FT_Sizesize()intsizeof()Returnssizeof(struct).longshortshortshortMethods 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_Faceinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct). -
num_faces
public long num_faces()- Returns:
- the value of the
num_facesfield.
-
face_index
public long face_index()- Returns:
- the value of the
face_indexfield.
-
face_flags
public long face_flags()- Returns:
- the value of the
face_flagsfield.
-
style_flags
public long style_flags()- Returns:
- the value of the
style_flagsfield.
-
num_glyphs
public long num_glyphs()- Returns:
- the value of the
num_glyphsfield.
-
family_name
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thefamily_namefield.
-
family_nameString
- Returns:
- the null-terminated string pointed to by the
family_namefield.
-
style_name
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thestyle_namefield.
-
style_nameString
- Returns:
- the null-terminated string pointed to by the
style_namefield.
-
num_fixed_sizes
public int num_fixed_sizes()- Returns:
- the value of the
num_fixed_sizesfield.
-
available_sizes
- Returns:
- a
FT_Bitmap_Size.Bufferview of the struct array pointed to by theavailable_sizesfield.
-
num_charmaps
public int num_charmaps()- Returns:
- the value of the
num_charmapsfield.
-
charmaps
- Returns:
- a
PointerBufferview of the data pointed to by thecharmapsfield.
-
generic
- Returns:
- a
FT_Genericview of thegenericfield.
-
bbox
- Returns:
- a
FT_BBoxview of thebboxfield.
-
units_per_EM
public short units_per_EM()- Returns:
- the value of the
units_per_EMfield.
-
ascender
public short ascender()- Returns:
- the value of the
ascenderfield.
-
descender
public short descender()- Returns:
- the value of the
descenderfield.
-
height
public short height()- Returns:
- the value of the
heightfield.
-
max_advance_width
public short max_advance_width()- Returns:
- the value of the
max_advance_widthfield.
-
max_advance_height
public short max_advance_height()- Returns:
- the value of the
max_advance_heightfield.
-
underline_position
public short underline_position()- Returns:
- the value of the
underline_positionfield.
-
underline_thickness
public short underline_thickness()- Returns:
- the value of the
underline_thicknessfield.
-
glyph
- Returns:
- a
FT_GlyphSlotview of the struct pointed to by theglyphfield.
-
size
- Returns:
- a
FT_Sizeview of the struct pointed to by thesizefield.
-
charmap
- Returns:
- a
FT_CharMapview of the struct pointed to by thecharmapfield.
-
create
Returns a newFT_Faceinstance for the specified memory address. -
createSafe
-
create
Create aFT_Face.Bufferinstance 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)
-