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

public Class TT_Header

extends Struct<TT_Header>
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

A structure to model a TrueType font header table.

Layout


struct TT_Header {
    FT_Fixed Table_Version;
    FT_Fixed Font_Revision;
    FT_Long CheckSum_Adjust;
    FT_Long Magic_Number;
    FT_UShort Flags;
    FT_UShort Units_Per_EM;
    FT_ULong Created[2];
    FT_ULong Modified[2];
    FT_Short xMin;
    FT_Short yMin;
    FT_Short xMax;
    FT_Short yMax;
    FT_UShort Mac_Style;
    FT_UShort Lowest_Rec_PPEM;
    FT_Short Font_Direction;
    FT_Short Index_To_Loc_Format;
    FT_Short Glyph_Data_Format;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
TT_Header.Buffer

An array of TT_Header structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
CHECKSUM_ADJUST

The struct member offsets.

public static final int
CREATED

The struct member offsets.

public static final int
FLAGS

The struct member offsets.

public static final int
FONT_DIRECTION

The struct member offsets.

public static final int
FONT_REVISION

The struct member offsets.

public static final int
GLYPH_DATA_FORMAT

The struct member offsets.

public static final int
INDEX_TO_LOC_FORMAT

The struct member offsets.

public static final int
LOWEST_REC_PPEM

The struct member offsets.

public static final int
MAC_STYLE

The struct member offsets.

public static final int
MAGIC_NUMBER

The struct member offsets.

public static final int
MODIFIED

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
TABLE_VERSION

The struct member offsets.

public static final int
UNITS_PER_EM

The struct member offsets.

public static final int
XMAX

The struct member offsets.

public static final int
XMIN

The struct member offsets.

public static final int
YMAX

The struct member offsets.

public static final int
YMIN

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
TT_Header(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

the value of the CheckSum_Adjust field.
CheckSum_Adjust
()

protected TT_Header
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 TT_Header
create(long address)

Returns a new TT_Header instance for the specified memory address.

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

Create a TT_Header.Buffer instance at the specified memory.

public CLongBuffer

Returns:

a CLongBuffer view of the Created field.
Created
()

public long

Returns:

the value at the specified index of the Created field.
Created
(int index)

public static TT_Header
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public short

Returns:

the value of the Flags field.
Flags
()

public short

Returns:

the value of the Font_Direction field.
Font_Direction
()

public long

Returns:

the value of the Font_Revision field.
Font_Revision
()

public short

Returns:

the value of the Glyph_Data_Format field.
Glyph_Data_Format
()

public short

Returns:

the value of the Index_To_Loc_Format field.
Index_To_Loc_Format
()

public short

Returns:

the value of the Lowest_Rec_PPEM field.
Lowest_Rec_PPEM
()

public short

Returns:

the value of the Mac_Style field.
Mac_Style
()

public long

Returns:

the value of the Magic_Number field.
Magic_Number
()

public CLongBuffer

Returns:

a CLongBuffer view of the Modified field.
Modified
()

public long

Returns:

the value at the specified index of the Modified field.
Modified
(int index)

public static long
nCheckSum_Adjust(long struct)

Unsafe version of CheckSum_Adjust.

public static CLongBuffer
nCreated(long struct)

Unsafe version of Created.

public static long
nCreated(long struct, int index)

Unsafe version of Created.

public static short
nFlags(long struct)

Unsafe version of Flags.

public static short
nFont_Direction(long struct)

Unsafe version of Font_Direction.

public static long
nFont_Revision(long struct)

Unsafe version of Font_Revision.

public static short
nGlyph_Data_Format(long struct)

Unsafe version of Glyph_Data_Format.

public static short
nIndex_To_Loc_Format(long struct)

Unsafe version of Index_To_Loc_Format.

public static short
nLowest_Rec_PPEM(long struct)

Unsafe version of Lowest_Rec_PPEM.

public static short
nMac_Style(long struct)

Unsafe version of Mac_Style.

public static long
nMagic_Number(long struct)

Unsafe version of Magic_Number.

public static CLongBuffer
nModified(long struct)

Unsafe version of Modified.

public static long
nModified(long struct, int index)

Unsafe version of Modified.

public static long
nTable_Version(long struct)

Unsafe version of Table_Version.

public static short
nUnits_Per_EM(long struct)

Unsafe version of Units_Per_EM.

public static short
nxMax(long struct)

Unsafe version of xMax.

public static short
nxMin(long struct)

Unsafe version of xMin.

public static short
nyMax(long struct)

Unsafe version of yMax.

public static short
nyMin(long struct)

Unsafe version of yMin.

public int
sizeof()

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

Returns sizeof(struct).
public long

Returns:

the value of the Table_Version field.
Table_Version
()

public short

Returns:

the value of the Units_Per_EM field.
Units_Per_EM
()

public short

Returns:

the value of the xMax field.
xMax
()

public short

Returns:

the value of the xMin field.
xMin
()

public short

Returns:

the value of the yMax field.
yMax
()

public short

Returns:

the value of the yMin field.
yMin
()

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

CHECKSUM_ADJUSTback to summary
public static final int CHECKSUM_ADJUST

The struct member offsets.

CREATEDback to summary
public static final int CREATED

The struct member offsets.

FLAGSback to summary
public static final int FLAGS

The struct member offsets.

FONT_DIRECTIONback to summary
public static final int FONT_DIRECTION

The struct member offsets.

FONT_REVISIONback to summary
public static final int FONT_REVISION

The struct member offsets.

GLYPH_DATA_FORMATback to summary
public static final int GLYPH_DATA_FORMAT

The struct member offsets.

INDEX_TO_LOC_FORMATback to summary
public static final int INDEX_TO_LOC_FORMAT

The struct member offsets.

LOWEST_REC_PPEMback to summary
public static final int LOWEST_REC_PPEM

The struct member offsets.

MAC_STYLEback to summary
public static final int MAC_STYLE

The struct member offsets.

MAGIC_NUMBERback to summary
public static final int MAGIC_NUMBER

The struct member offsets.

MODIFIEDback to summary
public static final int MODIFIED

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

TABLE_VERSIONback to summary
public static final int TABLE_VERSION

The struct member offsets.

UNITS_PER_EMback to summary
public static final int UNITS_PER_EM

The struct member offsets.

XMAXback to summary
public static final int XMAX

The struct member offsets.

XMINback to summary
public static final int XMIN

The struct member offsets.

YMAXback to summary
public static final int YMAX

The struct member offsets.

YMINback to summary
public static final int YMIN

The struct member offsets.

Constructor Detail

TT_Headerback to summary
protected TT_Header(long address, ByteBuffer container)
TT_Headerback to summary
public TT_Header(ByteBuffer container)

Creates a TT_Header instance at the current position of the specified ByteBuffer 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 Detail

CheckSum_Adjustback to summary
public long CheckSum_Adjust()
Returns:long

the value of the CheckSum_Adjust field.

Annotations
@NativeType:FT_Long
createback to summary
protected TT_Header create(long address, ByteBuffer container)

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

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static TT_Header create(long address)

Returns a new TT_Header instance for the specified memory address.

createback to summary
public static TT_Header.Buffer create(long address, int capacity)

Create a TT_Header.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

Createdback to summary
public CLongBuffer Created()
Returns:CLongBuffer

a CLongBuffer view of the Created field.

Annotations
@NativeType:FT_ULong[2]
Createdback to summary
public long Created(int index)
Returns:long

the value at the specified index of the Created field.

Annotations
@NativeType:FT_ULong
createSafeback to summary
public static TT_Header createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static TT_Header.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
Flagsback to summary
public short Flags()
Returns:short

the value of the Flags field.

Annotations
@NativeType:FT_UShort
Font_Directionback to summary
public short Font_Direction()
Returns:short

the value of the Font_Direction field.

Annotations
@NativeType:FT_Short
Font_Revisionback to summary
public long Font_Revision()
Returns:long

the value of the Font_Revision field.

Annotations
@NativeType:FT_Fixed
Glyph_Data_Formatback to summary
public short Glyph_Data_Format()
Returns:short

the value of the Glyph_Data_Format field.

Annotations
@NativeType:FT_Short
Index_To_Loc_Formatback to summary
public short Index_To_Loc_Format()
Returns:short

the value of the Index_To_Loc_Format field.

Annotations
@NativeType:FT_Short
Lowest_Rec_PPEMback to summary
public short Lowest_Rec_PPEM()
Returns:short

the value of the Lowest_Rec_PPEM field.

Annotations
@NativeType:FT_UShort
Mac_Styleback to summary
public short Mac_Style()
Returns:short

the value of the Mac_Style field.

Annotations
@NativeType:FT_UShort
Magic_Numberback to summary
public long Magic_Number()
Returns:long

the value of the Magic_Number field.

Annotations
@NativeType:FT_Long
Modifiedback to summary
public CLongBuffer Modified()
Returns:CLongBuffer

a CLongBuffer view of the Modified field.

Annotations
@NativeType:FT_ULong[2]
Modifiedback to summary
public long Modified(int index)
Returns:long

the value at the specified index of the Modified field.

Annotations
@NativeType:FT_ULong
nCheckSum_Adjustback to summary
public static long nCheckSum_Adjust(long struct)

Unsafe version of CheckSum_Adjust.

nCreatedback to summary
public static CLongBuffer nCreated(long struct)

Unsafe version of Created.

nCreatedback to summary
public static long nCreated(long struct, int index)

Unsafe version of Created.

nFlagsback to summary
public static short nFlags(long struct)

Unsafe version of Flags.

nFont_Directionback to summary
public static short nFont_Direction(long struct)

Unsafe version of Font_Direction.

nFont_Revisionback to summary
public static long nFont_Revision(long struct)

Unsafe version of Font_Revision.

nGlyph_Data_Formatback to summary
public static short nGlyph_Data_Format(long struct)

Unsafe version of Glyph_Data_Format.

nIndex_To_Loc_Formatback to summary
public static short nIndex_To_Loc_Format(long struct)

Unsafe version of Index_To_Loc_Format.

nLowest_Rec_PPEMback to summary
public static short nLowest_Rec_PPEM(long struct)

Unsafe version of Lowest_Rec_PPEM.

nMac_Styleback to summary
public static short nMac_Style(long struct)

Unsafe version of Mac_Style.

nMagic_Numberback to summary
public static long nMagic_Number(long struct)

Unsafe version of Magic_Number.

nModifiedback to summary
public static CLongBuffer nModified(long struct)

Unsafe version of Modified.

nModifiedback to summary
public static long nModified(long struct, int index)

Unsafe version of Modified.

nTable_Versionback to summary
public static long nTable_Version(long struct)

Unsafe version of Table_Version.

nUnits_Per_EMback to summary
public static short nUnits_Per_EM(long struct)

Unsafe version of Units_Per_EM.

nxMaxback to summary
public static short nxMax(long struct)

Unsafe version of xMax.

nxMinback to summary
public static short nxMin(long struct)

Unsafe version of xMin.

nyMaxback to summary
public static short nyMax(long struct)

Unsafe version of yMax.

nyMinback to summary
public static short nyMin(long struct)

Unsafe version of yMin.

sizeofback to summary
public int sizeof()

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

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
Table_Versionback to summary
public long Table_Version()
Returns:long

the value of the Table_Version field.

Annotations
@NativeType:FT_Fixed
Units_Per_EMback to summary
public short Units_Per_EM()
Returns:short

the value of the Units_Per_EM field.

Annotations
@NativeType:FT_UShort
xMaxback to summary
public short xMax()
Returns:short

the value of the xMax field.

Annotations
@NativeType:FT_Short
xMinback to summary
public short xMin()
Returns:short

the value of the xMin field.

Annotations
@NativeType:FT_Short
yMaxback to summary
public short yMax()
Returns:short

the value of the yMax field.

Annotations
@NativeType:FT_Short
yMinback to summary
public short yMin()
Returns:short

the value of the yMin field.

Annotations
@NativeType:FT_Short
org.lwjgl.util.freetype back to summary

public Class TT_Header.Buffer

extends StructBuffer<TT_Header, TT_Header.Buffer>
Class Inheritance

An array of TT_Header structs.

Field Summary

Modifier and TypeField and Description
private static final TT_Header

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new TT_Header.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

the value of the CheckSum_Adjust field.
CheckSum_Adjust
()

public CLongBuffer

Returns:

a CLongBuffer view of the Created field.
Created
()

public long

Returns:

the value at the specified index of the Created field.
Created
(int index)

public short

Returns:

the value of the Flags field.
Flags
()

public short

Returns:

the value of the Font_Direction field.
Font_Direction
()

public long

Returns:

the value of the Font_Revision field.
Font_Revision
()

protected TT_Header
public short

Returns:

the value of the Glyph_Data_Format field.
Glyph_Data_Format
()

public short

Returns:

the value of the Index_To_Loc_Format field.
Index_To_Loc_Format
()

public short

Returns:

the value of the Lowest_Rec_PPEM field.
Lowest_Rec_PPEM
()

public short

Returns:

the value of the Mac_Style field.
Mac_Style
()

public long

Returns:

the value of the Magic_Number field.
Magic_Number
()

public CLongBuffer

Returns:

a CLongBuffer view of the Modified field.
Modified
()

public long

Returns:

the value at the specified index of the Modified field.
Modified
(int index)

protected TT_Header.Buffer
public long

Returns:

the value of the Table_Version field.
Table_Version
()

public short

Returns:

the value of the Units_Per_EM field.
Units_Per_EM
()

public short

Returns:

the value of the xMax field.
xMax
()

public short

Returns:

the value of the xMin field.
xMin
()

public short

Returns:

the value of the yMax field.
yMax
()

public short

Returns:

the value of the yMin field.
yMin
()

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final TT_Header ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new TT_Header.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 TT_Header#SIZEOF, and its mark will be undefined.

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

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

CheckSum_Adjustback to summary
public long CheckSum_Adjust()
Returns:long

the value of the CheckSum_Adjust field.

Annotations
@NativeType:FT_Long
Createdback to summary
public CLongBuffer Created()
Returns:CLongBuffer

a CLongBuffer view of the Created field.

Annotations
@NativeType:FT_ULong[2]
Createdback to summary
public long Created(int index)
Returns:long

the value at the specified index of the Created field.

Annotations
@NativeType:FT_ULong
Flagsback to summary
public short Flags()
Returns:short

the value of the Flags field.

Annotations
@NativeType:FT_UShort
Font_Directionback to summary
public short Font_Direction()
Returns:short

the value of the Font_Direction field.

Annotations
@NativeType:FT_Short
Font_Revisionback to summary
public long Font_Revision()
Returns:long

the value of the Font_Revision field.

Annotations
@NativeType:FT_Fixed
getElementFactoryback to summary
protected TT_Header getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
Glyph_Data_Formatback to summary
public short Glyph_Data_Format()
Returns:short

the value of the Glyph_Data_Format field.

Annotations
@NativeType:FT_Short
Index_To_Loc_Formatback to summary
public short Index_To_Loc_Format()
Returns:short

the value of the Index_To_Loc_Format field.

Annotations
@NativeType:FT_Short
Lowest_Rec_PPEMback to summary
public short Lowest_Rec_PPEM()
Returns:short

the value of the Lowest_Rec_PPEM field.

Annotations
@NativeType:FT_UShort
Mac_Styleback to summary
public short Mac_Style()
Returns:short

the value of the Mac_Style field.

Annotations
@NativeType:FT_UShort
Magic_Numberback to summary
public long Magic_Number()
Returns:long

the value of the Magic_Number field.

Annotations
@NativeType:FT_Long
Modifiedback to summary
public CLongBuffer Modified()
Returns:CLongBuffer

a CLongBuffer view of the Modified field.

Annotations
@NativeType:FT_ULong[2]
Modifiedback to summary
public long Modified(int index)
Returns:long

the value at the specified index of the Modified field.

Annotations
@NativeType:FT_ULong
selfback to summary
protected TT_Header.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
Table_Versionback to summary
public long Table_Version()
Returns:long

the value of the Table_Version field.

Annotations
@NativeType:FT_Fixed
Units_Per_EMback to summary
public short Units_Per_EM()
Returns:short

the value of the Units_Per_EM field.

Annotations
@NativeType:FT_UShort
xMaxback to summary
public short xMax()
Returns:short

the value of the xMax field.

Annotations
@NativeType:FT_Short
xMinback to summary
public short xMin()
Returns:short

the value of the xMin field.

Annotations
@NativeType:FT_Short
yMaxback to summary
public short yMax()
Returns:short

the value of the yMax field.

Annotations
@NativeType:FT_Short
yMinback to summary
public short yMin()
Returns:short

the value of the yMin field.

Annotations
@NativeType:FT_Short