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

public Class TT_OS2

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

A structure to model a TrueType OS/2 table.

Layout


struct TT_OS2 {
    FT_UShort version;
    FT_Short xAvgCharWidth;
    FT_UShort usWeightClass;
    FT_UShort usWidthClass;
    FT_UShort fsType;
    FT_Short ySubscriptXSize;
    FT_Short ySubscriptYSize;
    FT_Short ySubscriptXOffset;
    FT_Short ySubscriptYOffset;
    FT_Short ySuperscriptXSize;
    FT_Short ySuperscriptYSize;
    FT_Short ySuperscriptXOffset;
    FT_Short ySuperscriptYOffset;
    FT_Short yStrikeoutSize;
    FT_Short yStrikeoutPosition;
    FT_Short sFamilyClass;
    FT_Byte panose[10];
    FT_ULong ulUnicodeRange1;
    FT_ULong ulUnicodeRange2;
    FT_ULong ulUnicodeRange3;
    FT_ULong ulUnicodeRange4;
    FT_Char achVendID[4];
    FT_UShort fsSelection;
    FT_UShort usFirstCharIndex;
    FT_UShort usLastCharIndex;
    FT_Short sTypoAscender;
    FT_Short sTypoDescender;
    FT_Short sTypoLineGap;
    FT_UShort usWinAscent;
    FT_UShort usWinDescent;
    FT_ULong ulCodePageRange1;
    FT_ULong ulCodePageRange2;
    FT_Short sxHeight;
    FT_Short sCapHeight;
    FT_UShort usDefaultChar;
    FT_UShort usBreakChar;
    FT_UShort usMaxContext;
    FT_UShort usLowerOpticalPointSize;
    FT_UShort usUpperOpticalPointSize;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
TT_OS2.Buffer

An array of TT_OS2 structs.

Field Summary

Modifier and TypeField and Description
public static final int
ACHVENDID

The struct member offsets.

public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
FSSELECTION

The struct member offsets.

public static final int
FSTYPE

The struct member offsets.

public static final int
PANOSE

The struct member offsets.

public static final int
SCAPHEIGHT

The struct member offsets.

public static final int
SFAMILYCLASS

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
STYPOASCENDER

The struct member offsets.

public static final int
STYPODESCENDER

The struct member offsets.

public static final int
STYPOLINEGAP

The struct member offsets.

public static final int
SXHEIGHT

The struct member offsets.

public static final int
ULCODEPAGERANGE1

The struct member offsets.

public static final int
ULCODEPAGERANGE2

The struct member offsets.

public static final int
ULUNICODERANGE1

The struct member offsets.

public static final int
ULUNICODERANGE2

The struct member offsets.

public static final int
ULUNICODERANGE3

The struct member offsets.

public static final int
ULUNICODERANGE4

The struct member offsets.

public static final int
USBREAKCHAR

The struct member offsets.

public static final int
USDEFAULTCHAR

The struct member offsets.

public static final int
USFIRSTCHARINDEX

The struct member offsets.

public static final int
USLASTCHARINDEX

The struct member offsets.

public static final int
USLOWEROPTICALPOINTSIZE

The struct member offsets.

public static final int
USMAXCONTEXT

The struct member offsets.

public static final int
USUPPEROPTICALPOINTSIZE

The struct member offsets.

public static final int
USWEIGHTCLASS

The struct member offsets.

public static final int
USWIDTHCLASS

The struct member offsets.

public static final int
USWINASCENT

The struct member offsets.

public static final int
USWINDESCENT

The struct member offsets.

public static final int
VERSION

The struct member offsets.

public static final int
XAVGCHARWIDTH

The struct member offsets.

public static final int
YSTRIKEOUTPOSITION

The struct member offsets.

public static final int
YSTRIKEOUTSIZE

The struct member offsets.

public static final int
YSUBSCRIPTXOFFSET

The struct member offsets.

public static final int
YSUBSCRIPTXSIZE

The struct member offsets.

public static final int
YSUBSCRIPTYOFFSET

The struct member offsets.

public static final int
YSUBSCRIPTYSIZE

The struct member offsets.

public static final int
YSUPERSCRIPTXOFFSET

The struct member offsets.

public static final int
YSUPERSCRIPTXSIZE

The struct member offsets.

public static final int
YSUPERSCRIPTYOFFSET

The struct member offsets.

public static final int
YSUPERSCRIPTYSIZE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
TT_OS2(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public ByteBuffer

Returns:

a ByteBuffer view of the achVendID field.
achVendID
()

public byte

Returns:

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

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

Returns a new TT_OS2 instance for the specified memory address.

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

Create a TT_OS2.Buffer instance at the specified memory.

public static TT_OS2
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public short

Returns:

the value of the fsSelection field.
fsSelection
()

public short

Returns:

the value of the fsType field.
fsType
()

public static ByteBuffer
nachVendID(long struct)

Unsafe version of achVendID.

public static byte
nachVendID(long struct, int index)

Unsafe version of achVendID.

public static short
nfsSelection(long struct)

Unsafe version of fsSelection.

public static short
nfsType(long struct)

Unsafe version of fsType.

public static ByteBuffer
npanose(long struct)

Unsafe version of panose.

public static byte
npanose(long struct, int index)

Unsafe version of panose.

public static short
nsCapHeight(long struct)

Unsafe version of sCapHeight.

public static short
nsFamilyClass(long struct)

Unsafe version of sFamilyClass.

public static short
nsTypoAscender(long struct)

Unsafe version of sTypoAscender.

public static short
nsTypoDescender(long struct)

Unsafe version of sTypoDescender.

public static short
nsTypoLineGap(long struct)

Unsafe version of sTypoLineGap.

public static short
nsxHeight(long struct)

Unsafe version of sxHeight.

public static long
nulCodePageRange1(long struct)

Unsafe version of ulCodePageRange1.

public static long
nulCodePageRange2(long struct)

Unsafe version of ulCodePageRange2.

public static long
nulUnicodeRange1(long struct)

Unsafe version of ulUnicodeRange1.

public static long
nulUnicodeRange2(long struct)

Unsafe version of ulUnicodeRange2.

public static long
nulUnicodeRange3(long struct)

Unsafe version of ulUnicodeRange3.

public static long
nulUnicodeRange4(long struct)

Unsafe version of ulUnicodeRange4.

public static short
nusBreakChar(long struct)

Unsafe version of usBreakChar.

public static short
nusDefaultChar(long struct)

Unsafe version of usDefaultChar.

public static short
nusFirstCharIndex(long struct)

Unsafe version of usFirstCharIndex.

public static short
nusLastCharIndex(long struct)

Unsafe version of usLastCharIndex.

public static short
nusLowerOpticalPointSize(long struct)

Unsafe version of usLowerOpticalPointSize.

public static short
nusMaxContext(long struct)

Unsafe version of usMaxContext.

public static short
nusUpperOpticalPointSize(long struct)

Unsafe version of usUpperOpticalPointSize.

public static short
nusWeightClass(long struct)

Unsafe version of usWeightClass.

public static short
nusWidthClass(long struct)

Unsafe version of usWidthClass.

public static short
nusWinAscent(long struct)

Unsafe version of usWinAscent.

public static short
nusWinDescent(long struct)

Unsafe version of usWinDescent.

public static short
nversion(long struct)

Unsafe version of version.

public static short
nxAvgCharWidth(long struct)

Unsafe version of xAvgCharWidth.

public static short
nyStrikeoutPosition(long struct)

Unsafe version of yStrikeoutPosition.

public static short
nyStrikeoutSize(long struct)

Unsafe version of yStrikeoutSize.

public static short
nySubscriptXOffset(long struct)

Unsafe version of ySubscriptXOffset.

public static short
nySubscriptXSize(long struct)

Unsafe version of ySubscriptXSize.

public static short
nySubscriptYOffset(long struct)

Unsafe version of ySubscriptYOffset.

public static short
nySubscriptYSize(long struct)

Unsafe version of ySubscriptYSize.

public static short
nySuperscriptXOffset(long struct)

Unsafe version of ySuperscriptXOffset.

public static short
nySuperscriptXSize(long struct)

Unsafe version of ySuperscriptXSize.

public static short
nySuperscriptYOffset(long struct)

Unsafe version of ySuperscriptYOffset.

public static short
nySuperscriptYSize(long struct)

Unsafe version of ySuperscriptYSize.

public ByteBuffer

Returns:

a ByteBuffer view of the panose field.
panose
()

public byte

Returns:

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

public short

Returns:

the value of the sCapHeight field.
sCapHeight
()

public short

Returns:

the value of the sFamilyClass field.
sFamilyClass
()

public int
sizeof()

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

Returns sizeof(struct).
public short

Returns:

the value of the sTypoAscender field.
sTypoAscender
()

public short

Returns:

the value of the sTypoDescender field.
sTypoDescender
()

public short

Returns:

the value of the sTypoLineGap field.
sTypoLineGap
()

public short

Returns:

the value of the sxHeight field.
sxHeight
()

public long

Returns:

the value of the ulCodePageRange1 field.
ulCodePageRange1
()

public long

Returns:

the value of the ulCodePageRange2 field.
ulCodePageRange2
()

public long

Returns:

the value of the ulUnicodeRange1 field.
ulUnicodeRange1
()

public long

Returns:

the value of the ulUnicodeRange2 field.
ulUnicodeRange2
()

public long

Returns:

the value of the ulUnicodeRange3 field.
ulUnicodeRange3
()

public long

Returns:

the value of the ulUnicodeRange4 field.
ulUnicodeRange4
()

public short

Returns:

the value of the usBreakChar field.
usBreakChar
()

public short

Returns:

the value of the usDefaultChar field.
usDefaultChar
()

public short

Returns:

the value of the usFirstCharIndex field.
usFirstCharIndex
()

public short

Returns:

the value of the usLastCharIndex field.
usLastCharIndex
()

public short

Returns:

the value of the usLowerOpticalPointSize field.
usLowerOpticalPointSize
()

public short

Returns:

the value of the usMaxContext field.
usMaxContext
()

public short

Returns:

the value of the usUpperOpticalPointSize field.
usUpperOpticalPointSize
()

public short

Returns:

the value of the usWeightClass field.
usWeightClass
()

public short

Returns:

the value of the usWidthClass field.
usWidthClass
()

public short

Returns:

the value of the usWinAscent field.
usWinAscent
()

public short

Returns:

the value of the usWinDescent field.
usWinDescent
()

public short

Returns:

the value of the version field.
version
()

public short

Returns:

the value of the xAvgCharWidth field.
xAvgCharWidth
()

public short

Returns:

the value of the yStrikeoutPosition field.
yStrikeoutPosition
()

public short

Returns:

the value of the yStrikeoutSize field.
yStrikeoutSize
()

public short

Returns:

the value of the ySubscriptXOffset field.
ySubscriptXOffset
()

public short

Returns:

the value of the ySubscriptXSize field.
ySubscriptXSize
()

public short

Returns:

the value of the ySubscriptYOffset field.
ySubscriptYOffset
()

public short

Returns:

the value of the ySubscriptYSize field.
ySubscriptYSize
()

public short

Returns:

the value of the ySuperscriptXOffset field.
ySuperscriptXOffset
()

public short

Returns:

the value of the ySuperscriptXSize field.
ySuperscriptXSize
()

public short

Returns:

the value of the ySuperscriptYOffset field.
ySuperscriptYOffset
()

public short

Returns:

the value of the ySuperscriptYSize field.
ySuperscriptYSize
()

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate