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

public Class PS_FontInfo

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

A structure used to model a Type~1 or Type~2 FontInfo dictionary. Note that for Multiple Master fonts, each instance has its own FontInfo dictionary.

Layout


struct PS_FontInfoRec {
    FT_String * version;
    FT_String * notice;
    FT_String * full_name;
    FT_String * family_name;
    FT_String * weight;
    FT_Long italic_angle;
    FT_Bool is_fixed_pitch;
    FT_Short underline_position;
    FT_UShort underline_thickness;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
PS_FontInfo.Buffer

An array of PS_FontInfo structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
FAMILY_NAME

The struct member offsets.

public static final int
FULL_NAME

The struct member offsets.

public static final int
IS_FIXED_PITCH

The struct member offsets.

public static final int
ITALIC_ANGLE

The struct member offsets.

public static final int
NOTICE

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
UNDERLINE_POSITION

The struct member offsets.

public static final int
UNDERLINE_THICKNESS

The struct member offsets.

public static final int
VERSION

The struct member offsets.

public static final int
WEIGHT

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
PS_FontInfo(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
protected PS_FontInfo
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 PS_FontInfo
create(long address)

Returns a new PS_FontInfo instance for the specified memory address.

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

Create a PS_FontInfo.Buffer instance at the specified memory.

public static PS_FontInfo
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

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 ByteBuffer

Returns:

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

public String

Returns:

the null-terminated string pointed to by the full_name field.
full_nameString
()

public boolean

Returns:

the value of the is_fixed_pitch field.
is_fixed_pitch
()

public long

Returns:

the value of the italic_angle field.
italic_angle
()

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 ByteBuffer
nfull_name(long struct)

Unsafe version of full_name.

public static String
nfull_nameString(long struct)

Unsafe version of full_nameString.

public static boolean
nis_fixed_pitch(long struct)

Unsafe version of is_fixed_pitch.

public static long
nitalic_angle(long struct)

Unsafe version of italic_angle.

public static ByteBuffer
nnotice(long struct)

Unsafe version of notice.

public static String
nnoticeString(long struct)

Unsafe version of noticeString.

public ByteBuffer

Returns:

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

public String

Returns:

the null-terminated string pointed to by the notice field.
noticeString
()

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 ByteBuffer
nversion(long struct)

Unsafe version of version.

public static String
nversionString(long struct)

Unsafe version of versionString.

public static ByteBuffer
nweight(long struct)

Unsafe version of weight.

public static String
nweightString(long struct)

Unsafe version of weightString.

public int
sizeof()

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

Returns sizeof(struct).
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 ByteBuffer

Returns:

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

public String

Returns:

the null-terminated string pointed to by the version field.
versionString
()

public ByteBuffer

Returns:

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

public String

Returns:

the null-terminated string pointed to by the weight field.
weightString
()

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.

FAMILY_NAMEback to summary
public static final int FAMILY_NAME

The struct member offsets.

FULL_NAMEback to summary
public static final int FULL_NAME

The struct member offsets.

IS_FIXED_PITCHback to summary
public static final int IS_FIXED_PITCH

The struct member offsets.

ITALIC_ANGLEback to summary
public static final int ITALIC_ANGLE

The struct member offsets.

NOTICEback to summary
public static final int NOTICE

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

UNDERLINE_POSITIONback to summary
public static final int UNDERLINE_POSITION

The struct member offsets.

UNDERLINE_THICKNESSback to summary
public static final int UNDERLINE_THICKNESS

The struct member offsets.

VERSIONback to summary
public static final int VERSION

The struct member offsets.

WEIGHTback to summary
public static final int WEIGHT

The struct member offsets.

Constructor Detail

PS_FontInfoback to summary
protected PS_FontInfo(long address, ByteBuffer container)
PS_FontInfoback to summary
public PS_FontInfo(ByteBuffer container)

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

createback to summary
protected PS_FontInfo 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 PS_FontInfo create(long address)

Returns a new PS_FontInfo instance for the specified memory address.

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

Create a PS_FontInfo.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static PS_FontInfo createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

Annotations
@Nullable
family_nameback to summary
public ByteBuffer family_name()
Returns:ByteBuffer

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

Annotations
@NativeType:FT_String *
family_nameStringback to summary
public String family_nameString()
Returns:String

the null-terminated string pointed to by the family_name field.

Annotations
@NativeType:FT_String *
full_nameback to summary
public ByteBuffer full_name()
Returns:ByteBuffer

a ByteBuffer view of the null-terminated string pointed to by the full_name field.

Annotations
@NativeType:FT_String *
full_nameStringback to summary
public String full_nameString()
Returns:String

the null-terminated string pointed to by the full_name field.

Annotations
@NativeType:FT_String *
is_fixed_pitchback to summary
public boolean is_fixed_pitch()
Returns:boolean

the value of the is_fixed_pitch field.

Annotations
@NativeType:FT_Bool
italic_angleback to summary
public long italic_angle()
Returns:long

the value of the italic_angle field.

Annotations
@NativeType:FT_Long
nfamily_nameback to summary
public static ByteBuffer nfamily_name(long struct)

Unsafe version of family_name.

nfamily_nameStringback to summary
public static String nfamily_nameString(long struct)

Unsafe version of family_nameString.

nfull_nameback to summary
public static ByteBuffer nfull_name(long struct)

Unsafe version of full_name.

nfull_nameStringback to summary
public static String nfull_nameString(long struct)

Unsafe version of full_nameString.

nis_fixed_pitchback to summary
public static boolean nis_fixed_pitch(long struct)

Unsafe version of is_fixed_pitch.

nitalic_angleback to summary
public static long nitalic_angle(long struct)

Unsafe version of italic_angle.

nnoticeback to summary
public static ByteBuffer nnotice(long struct)

Unsafe version of notice.

nnoticeStringback to summary
public static String nnoticeString(long struct)

Unsafe version of noticeString.

noticeback to summary
public ByteBuffer notice()
Returns:ByteBuffer

a ByteBuffer view of the null-terminated string pointed to by the notice field.

Annotations
@NativeType:FT_String *
noticeStringback to summary
public String noticeString()
Returns:String

the null-terminated string pointed to by the notice field.

Annotations
@NativeType:FT_String *
nunderline_positionback to summary
public static short nunderline_position(long struct)

Unsafe version of underline_position.

nunderline_thicknessback to summary
public static short nunderline_thickness(long struct)

Unsafe version of underline_thickness.

nversionback to summary
public static ByteBuffer nversion(long struct)

Unsafe version of version.

nversionStringback to summary
public static String nversionString(long struct)

Unsafe version of versionString.

nweightback to summary
public static ByteBuffer nweight(long struct)

Unsafe version of weight.

nweightStringback to summary
public static String nweightString(long struct)

Unsafe version of weightString.

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
underline_positionback to summary
public short underline_position()
Returns:short

the value of the underline_position field.

Annotations
@NativeType:FT_Short
underline_thicknessback to summary
public short underline_thickness()
Returns:short

the value of the underline_thickness field.

Annotations
@NativeType:FT_UShort
versionback to summary
public ByteBuffer version()
Returns:ByteBuffer

a ByteBuffer view of the null-terminated string pointed to by the version field.

Annotations
@NativeType:FT_String *
versionStringback to summary
public String versionString()
Returns:String

the null-terminated string pointed to by the version field.

Annotations
@NativeType:FT_String *
weightback to summary
public ByteBuffer weight()
Returns:ByteBuffer

a ByteBuffer view of the null-terminated string pointed to by the weight field.

Annotations
@NativeType:FT_String *
weightStringback to summary
public String weightString()
Returns:String

the null-terminated string pointed to by the weight field.

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

public Class PS_FontInfo.Buffer

extends StructBuffer<PS_FontInfo, PS_FontInfo.Buffer>
Class Inheritance

An array of PS_FontInfo structs.

Field Summary

Modifier and TypeField and Description
private static final PS_FontInfo

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new PS_FontInfo.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 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 ByteBuffer

Returns:

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

public String

Returns:

the null-terminated string pointed to by the full_name field.
full_nameString
()

protected PS_FontInfo
public boolean

Returns:

the value of the is_fixed_pitch field.
is_fixed_pitch
()

public long

Returns:

the value of the italic_angle field.
italic_angle
()

public ByteBuffer

Returns:

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

public String

Returns:

the null-terminated string pointed to by the notice field.
noticeString
()

protected PS_FontInfo.Buffer
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 ByteBuffer

Returns:

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

public String

Returns:

the null-terminated string pointed to by the version field.
versionString
()

public ByteBuffer

Returns:

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

public String

Returns:

the null-terminated string pointed to by the weight field.
weightString
()

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final PS_FontInfo ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

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

family_nameback to summary
public ByteBuffer family_name()
Returns:ByteBuffer

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

Annotations
@NativeType:FT_String *
family_nameStringback to summary
public String family_nameString()
Returns:String

the null-terminated string pointed to by the family_name field.

Annotations
@NativeType:FT_String *
full_nameback to summary
public ByteBuffer full_name()
Returns:ByteBuffer

a ByteBuffer view of the null-terminated string pointed to by the full_name field.

Annotations
@NativeType:FT_String *
full_nameStringback to summary
public String full_nameString()
Returns:String

the null-terminated string pointed to by the full_name field.

Annotations
@NativeType:FT_String *
getElementFactoryback to summary
protected PS_FontInfo getElementFactory()

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

Annotations
@Override
is_fixed_pitchback to summary
public boolean is_fixed_pitch()
Returns:boolean

the value of the is_fixed_pitch field.

Annotations
@NativeType:FT_Bool
italic_angleback to summary
public long italic_angle()
Returns:long

the value of the italic_angle field.

Annotations
@NativeType:FT_Long
noticeback to summary
public ByteBuffer notice()
Returns:ByteBuffer

a ByteBuffer view of the null-terminated string pointed to by the notice field.

Annotations
@NativeType:FT_String *
noticeStringback to summary
public String noticeString()
Returns:String

the null-terminated string pointed to by the notice field.

Annotations
@NativeType:FT_String *
selfback to summary
protected PS_FontInfo.Buffer self()

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

Annotations
@Override
underline_positionback to summary
public short underline_position()
Returns:short

the value of the underline_position field.

Annotations
@NativeType:FT_Short
underline_thicknessback to summary
public short underline_thickness()
Returns:short

the value of the underline_thickness field.

Annotations
@NativeType:FT_UShort
versionback to summary
public ByteBuffer version()
Returns:ByteBuffer

a ByteBuffer view of the null-terminated string pointed to by the version field.

Annotations
@NativeType:FT_String *
versionStringback to summary
public String versionString()
Returns:String

the null-terminated string pointed to by the version field.

Annotations
@NativeType:FT_String *
weightback to summary
public ByteBuffer weight()
Returns:ByteBuffer

a ByteBuffer view of the null-terminated string pointed to by the weight field.

Annotations
@NativeType:FT_String *
weightStringback to summary
public String weightString()
Returns:String

the null-terminated string pointed to by the weight field.

Annotations
@NativeType:FT_String *