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

public Class TT_PCLT

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

A structure to model a TrueType PCLT table.

Layout


struct TT_PCLT {
    FT_Fixed Version;
    FT_ULong FontNumber;
    FT_UShort Pitch;
    FT_UShort xHeight;
    FT_UShort Style;
    FT_UShort TypeFamily;
    FT_UShort CapHeight;
    FT_UShort SymbolSet;
    FT_Char TypeFace[16];
    FT_Char CharacterComplement[8];
    FT_Char FileName[6];
    FT_Char StrokeWeight;
    FT_Char WidthType;
    FT_Byte SerifStyle;
    FT_Byte Reserved;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
TT_PCLT.Buffer

An array of TT_PCLT structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
CAPHEIGHT

The struct member offsets.

public static final int
CHARACTERCOMPLEMENT

The struct member offsets.

public static final int
FILENAME

The struct member offsets.

public static final int
FONTNUMBER

The struct member offsets.

public static final int
PITCH

The struct member offsets.

public static final int
RESERVED

The struct member offsets.

public static final int
SERIFSTYLE

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
STROKEWEIGHT

The struct member offsets.

public static final int
STYLE

The struct member offsets.

public static final int
SYMBOLSET

The struct member offsets.

public static final int
TYPEFACE

The struct member offsets.

public static final int
TYPEFAMILY

The struct member offsets.

public static final int
VERSION

The struct member offsets.

public static final int
WIDTHTYPE

The struct member offsets.

public static final int
XHEIGHT

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
TT_PCLT(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public short

Returns:

the value of the CapHeight field.
CapHeight
()

public ByteBuffer

Returns:

a ByteBuffer view of the CharacterComplement field.
CharacterComplement
()

public byte

Returns:

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

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

Returns a new TT_PCLT instance for the specified memory address.

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

Create a TT_PCLT.Buffer instance at the specified memory.

public static TT_PCLT
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public ByteBuffer

Returns:

a ByteBuffer view of the FileName field.
FileName
()

public byte

Returns:

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

public long

Returns:

the value of the FontNumber field.
FontNumber
()

public static short
nCapHeight(long struct)

Unsafe version of CapHeight.

public static ByteBuffer
nCharacterComplement(long struct)

Unsafe version of CharacterComplement.

public static byte
nCharacterComplement(long struct, int index)

Unsafe version of CharacterComplement.

public static ByteBuffer
nFileName(long struct)

Unsafe version of FileName.

public static byte
nFileName(long struct, int index)

Unsafe version of FileName.

public static long
nFontNumber(long struct)

Unsafe version of FontNumber.

public static short
nPitch(long struct)

Unsafe version of Pitch.

public static byte
nReserved(long struct)

Unsafe version of Reserved.

public static byte
nSerifStyle(long struct)

Unsafe version of SerifStyle.

public static byte
nStrokeWeight(long struct)

Unsafe version of StrokeWeight.

public static short
nStyle(long struct)

Unsafe version of Style.

public static short
nSymbolSet(long struct)

Unsafe version of SymbolSet.

public static ByteBuffer
nTypeFace(long struct)

Unsafe version of TypeFace.

public static byte
nTypeFace(long struct, int index)

Unsafe version of TypeFace.

public static short
nTypeFamily(long struct)

Unsafe version of TypeFamily.

public static long
nVersion(long struct)

Unsafe version of Version.

public static byte
nWidthType(long struct)

Unsafe version of WidthType.

public static short
nxHeight(long struct)

Unsafe version of xHeight.

public short

Returns:

the value of the Pitch field.
Pitch
()

public byte

Returns:

the value of the Reserved field.
Reserved
()

public byte

Returns:

the value of the SerifStyle field.
SerifStyle
()

public int
sizeof()

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

Returns sizeof(struct).
public byte

Returns:

the value of the StrokeWeight field.
StrokeWeight
()

public short

Returns:

the value of the Style field.
Style
()

public short

Returns:

the value of the SymbolSet field.
SymbolSet
()

public ByteBuffer

Returns:

a ByteBuffer view of the TypeFace field.
TypeFace
()

public byte

Returns:

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

public short

Returns:

the value of the TypeFamily field.
TypeFamily
()

public long

Returns:

the value of the Version field.
Version
()

public byte

Returns:

the value of the WidthType field.
WidthType
()

public short

Returns:

the value of the xHeight field.
xHeight
()

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.

CAPHEIGHTback to summary
public static final int CAPHEIGHT

The struct member offsets.

CHARACTERCOMPLEMENTback to summary
public static final int CHARACTERCOMPLEMENT

The struct member offsets.

FILENAMEback to summary
public static final int FILENAME

The struct member offsets.

FONTNUMBERback to summary
public static final int FONTNUMBER

The struct member offsets.

PITCHback to summary
public static final int PITCH

The struct member offsets.

RESERVEDback to summary
public static final int RESERVED

The struct member offsets.

SERIFSTYLEback to summary
public static final int SERIFSTYLE

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

STROKEWEIGHTback to summary
public static final int STROKEWEIGHT

The struct member offsets.

STYLEback to summary
public static final int STYLE

The struct member offsets.

SYMBOLSETback to summary
public static final int SYMBOLSET

The struct member offsets.

TYPEFACEback to summary
public static final int TYPEFACE

The struct member offsets.

TYPEFAMILYback to summary
public static final int TYPEFAMILY

The struct member offsets.

VERSIONback to summary
public static final int VERSION

The struct member offsets.

WIDTHTYPEback to summary
public static final int WIDTHTYPE

The struct member offsets.

XHEIGHTback to summary
public static final int XHEIGHT

The struct member offsets.

Constructor Detail

TT_PCLTback to summary
protected TT_PCLT(long address, ByteBuffer container)
TT_PCLTback to summary
public TT_PCLT(ByteBuffer container)

Creates a TT_PCLT 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

CapHeightback to summary
public short CapHeight()
Returns:short

the value of the CapHeight field.

Annotations
@NativeType:FT_UShort
CharacterComplementback to summary
public ByteBuffer CharacterComplement()
Returns:ByteBuffer

a ByteBuffer view of the CharacterComplement field.

Annotations
@NativeType:FT_Char[8]
CharacterComplementback to summary
public byte CharacterComplement(int index)
Returns:byte

the value at the specified index of the CharacterComplement field.

Annotations
@NativeType:FT_Char
createback to summary
protected TT_PCLT 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_PCLT create(long address)

Returns a new TT_PCLT instance for the specified memory address.

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

Create a TT_PCLT.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static TT_PCLT createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

Annotations
@Nullable
FileNameback to summary
public ByteBuffer FileName()
Returns:ByteBuffer

a ByteBuffer view of the FileName field.

Annotations
@NativeType:FT_Char[6]
FileNameback to summary
public byte FileName(int index)
Returns:byte

the value at the specified index of the FileName field.

Annotations
@NativeType:FT_Char
FontNumberback to summary
public long FontNumber()
Returns:long

the value of the FontNumber field.

Annotations
@NativeType:FT_ULong
nCapHeightback to summary
public static short nCapHeight(long struct)

Unsafe version of CapHeight.

nCharacterComplementback to summary
public static ByteBuffer nCharacterComplement(long struct)

Unsafe version of CharacterComplement.

nCharacterComplementback to summary
public static byte nCharacterComplement(long struct, int index)

Unsafe version of CharacterComplement.

nFileNameback to summary
public static ByteBuffer nFileName(long struct)

Unsafe version of FileName.

nFileNameback to summary
public static byte nFileName(long struct, int index)

Unsafe version of FileName.

nFontNumberback to summary
public static long nFontNumber(long struct)

Unsafe version of FontNumber.

nPitchback to summary
public static short nPitch(long struct)

Unsafe version of Pitch.

nReservedback to summary
public static byte nReserved(long struct)

Unsafe version of Reserved.

nSerifStyleback to summary
public static byte nSerifStyle(long struct)

Unsafe version of SerifStyle.

nStrokeWeightback to summary
public static byte nStrokeWeight(long struct)

Unsafe version of StrokeWeight.

nStyleback to summary
public static short nStyle(long struct)

Unsafe version of Style.

nSymbolSetback to summary
public static short nSymbolSet(long struct)

Unsafe version of SymbolSet.

nTypeFaceback to summary
public static ByteBuffer nTypeFace(long struct)

Unsafe version of TypeFace.

nTypeFaceback to summary
public static byte nTypeFace(long struct, int index)

Unsafe version of TypeFace.

nTypeFamilyback to summary
public static short nTypeFamily(long struct)

Unsafe version of TypeFamily.

nVersionback to summary
public static long nVersion(long struct)

Unsafe version of Version.

nWidthTypeback to summary
public static byte nWidthType(long struct)

Unsafe version of WidthType.

nxHeightback to summary
public static short nxHeight(long struct)

Unsafe version of xHeight.

Pitchback to summary
public short Pitch()
Returns:short

the value of the Pitch field.

Annotations
@NativeType:FT_UShort
Reservedback to summary
public byte Reserved()
Returns:byte

the value of the Reserved field.

Annotations
@NativeType:FT_Byte
SerifStyleback to summary
public byte SerifStyle()
Returns:byte

the value of the SerifStyle field.

Annotations
@NativeType:FT_Byte
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
StrokeWeightback to summary
public byte StrokeWeight()
Returns:byte

the value of the StrokeWeight field.

Annotations
@NativeType:FT_Char
Styleback to summary
public short Style()
Returns:short

the value of the Style field.

Annotations
@NativeType:FT_UShort
SymbolSetback to summary
public short SymbolSet()
Returns:short

the value of the SymbolSet field.

Annotations
@NativeType:FT_UShort
TypeFaceback to summary
public ByteBuffer TypeFace()
Returns:ByteBuffer

a ByteBuffer view of the TypeFace field.

Annotations
@NativeType:FT_Char[16]
TypeFaceback to summary
public byte TypeFace(int index)
Returns:byte

the value at the specified index of the TypeFace field.

Annotations
@NativeType:FT_Char
TypeFamilyback to summary
public short TypeFamily()
Returns:short

the value of the TypeFamily field.

Annotations
@NativeType:FT_UShort
Versionback to summary
public long Version()
Returns:long

the value of the Version field.

Annotations
@NativeType:FT_Fixed
WidthTypeback to summary
public byte WidthType()
Returns:byte

the value of the WidthType field.

Annotations
@NativeType:FT_Char
xHeightback to summary
public short xHeight()
Returns:short

the value of the xHeight field.

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

public Class TT_PCLT.Buffer

extends StructBuffer<TT_PCLT, TT_PCLT.Buffer>
Class Inheritance

An array of TT_PCLT structs.

Field Summary

Modifier and TypeField and Description
private static final TT_PCLT

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new TT_PCLT.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 short

Returns:

the value of the CapHeight field.
CapHeight
()

public ByteBuffer

Returns:

a ByteBuffer view of the CharacterComplement field.
CharacterComplement
()

public byte

Returns:

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

public ByteBuffer

Returns:

a ByteBuffer view of the FileName field.
FileName
()

public byte

Returns:

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

public long

Returns:

the value of the FontNumber field.
FontNumber
()

protected TT_PCLT
public short

Returns:

the value of the Pitch field.
Pitch
()

public byte

Returns:

the value of the Reserved field.
Reserved
()

protected TT_PCLT.Buffer
public byte

Returns:

the value of the SerifStyle field.
SerifStyle
()

public byte

Returns:

the value of the StrokeWeight field.
StrokeWeight
()

public short

Returns:

the value of the Style field.
Style
()

public short

Returns:

the value of the SymbolSet field.
SymbolSet
()

public ByteBuffer

Returns:

a ByteBuffer view of the TypeFace field.
TypeFace
()

public byte

Returns:

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

public short

Returns:

the value of the TypeFamily field.
TypeFamily
()

public long

Returns:

the value of the Version field.
Version
()

public byte

Returns:

the value of the WidthType field.
WidthType
()

public short

Returns:

the value of the xHeight field.
xHeight
()

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final TT_PCLT ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new TT_PCLT.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_PCLT#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

CapHeightback to summary
public short CapHeight()
Returns:short

the value of the CapHeight field.

Annotations
@NativeType:FT_UShort
CharacterComplementback to summary
public ByteBuffer CharacterComplement()
Returns:ByteBuffer

a ByteBuffer view of the CharacterComplement field.

Annotations
@NativeType:FT_Char[8]
CharacterComplementback to summary
public byte CharacterComplement(int index)
Returns:byte

the value at the specified index of the CharacterComplement field.

Annotations
@NativeType:FT_Char
FileNameback to summary
public ByteBuffer FileName()
Returns:ByteBuffer

a ByteBuffer view of the FileName field.

Annotations
@NativeType:FT_Char[6]
FileNameback to summary
public byte FileName(int index)
Returns:byte

the value at the specified index of the FileName field.

Annotations
@NativeType:FT_Char
FontNumberback to summary
public long FontNumber()
Returns:long

the value of the FontNumber field.

Annotations
@NativeType:FT_ULong
getElementFactoryback to summary
protected TT_PCLT getElementFactory()

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

Annotations
@Override
Pitchback to summary
public short Pitch()
Returns:short

the value of the Pitch field.

Annotations
@NativeType:FT_UShort
Reservedback to summary
public byte Reserved()
Returns:byte

the value of the Reserved field.

Annotations
@NativeType:FT_Byte
selfback to summary
protected TT_PCLT.Buffer self()

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

Annotations
@Override
SerifStyleback to summary
public byte SerifStyle()
Returns:byte

the value of the SerifStyle field.

Annotations
@NativeType:FT_Byte
StrokeWeightback to summary
public byte StrokeWeight()
Returns:byte

the value of the StrokeWeight field.

Annotations
@NativeType:FT_Char
Styleback to summary
public short Style()
Returns:short

the value of the Style field.

Annotations
@NativeType:FT_UShort
SymbolSetback to summary
public short SymbolSet()
Returns:short

the value of the SymbolSet field.

Annotations
@NativeType:FT_UShort
TypeFaceback to summary
public ByteBuffer TypeFace()
Returns:ByteBuffer

a ByteBuffer view of the TypeFace field.

Annotations
@NativeType:FT_Char[16]
TypeFaceback to summary
public byte TypeFace(int index)
Returns:byte

the value at the specified index of the TypeFace field.

Annotations
@NativeType:FT_Char
TypeFamilyback to summary
public short TypeFamily()
Returns:short

the value of the TypeFamily field.

Annotations
@NativeType:FT_UShort
Versionback to summary
public long Version()
Returns:long

the value of the Version field.

Annotations
@NativeType:FT_Fixed
WidthTypeback to summary
public byte WidthType()
Returns:byte

the value of the WidthType field.

Annotations
@NativeType:FT_Char
xHeightback to summary
public short xHeight()
Returns:short

the value of the xHeight field.

Annotations
@NativeType:FT_UShort