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

public Class CID_FaceInfo

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

A structure used to represent CID Face information.

Layout


struct CID_FaceInfoRec {
    FT_String * cid_font_name;
    FT_Fixed cid_version;
    FT_Int cid_font_type;
    FT_String * registry;
    FT_String * ordering;
    FT_Int supplement;
    PS_FontInfoRec font_info;
    FT_BBox font_bbox;
    FT_ULong uid_base;
    FT_Int num_xuid;
    FT_ULong xuid[16];
    FT_ULong cidmap_offset;
    FT_UInt fd_bytes;
    FT_UInt gd_bytes;
    FT_ULong cid_count;
    FT_UInt num_dicts;
    CID_FaceDict font_dicts;
    FT_ULong data_offset;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
CID_FaceInfo.Buffer

An array of CID_FaceInfo structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
CID_COUNT

The struct member offsets.

public static final int
CID_FONT_NAME

The struct member offsets.

public static final int
CID_FONT_TYPE

The struct member offsets.

public static final int
CID_VERSION

The struct member offsets.

public static final int
CIDMAP_OFFSET

The struct member offsets.

public static final int
DATA_OFFSET

The struct member offsets.

public static final int
FD_BYTES

The struct member offsets.

public static final int
FONT_BBOX

The struct member offsets.

public static final int
FONT_DICTS

The struct member offsets.

public static final int
FONT_INFO

The struct member offsets.

public static final int
GD_BYTES

The struct member offsets.

public static final int
NUM_DICTS

The struct member offsets.

public static final int
NUM_XUID

The struct member offsets.

public static final int
ORDERING

The struct member offsets.

public static final int
REGISTRY

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
SUPPLEMENT

The struct member offsets.

public static final int
UID_BASE

The struct member offsets.

public static final int
XUID

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
CID_FaceInfo(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

the value of the cid_count field.
cid_count
()

public ByteBuffer

Returns:

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

public String

Returns:

the null-terminated string pointed to by the cid_font_name field.
cid_font_nameString
()

public int

Returns:

the value of the cid_font_type field.
cid_font_type
()

public long

Returns:

the value of the cid_version field.
cid_version
()

public long

Returns:

the value of the cidmap_offset field.
cidmap_offset
()

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

Returns a new CID_FaceInfo instance for the specified memory address.

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

Create a CID_FaceInfo.Buffer instance at the specified memory.

public static CID_FaceInfo
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public long

Returns:

the value of the data_offset field.
data_offset
()

public int

Returns:

the value of the fd_bytes field.
fd_bytes
()

public FT_BBox

Returns:

a FT_BBox view of the font_bbox field.
font_bbox
()

public CID_FaceDict

Returns:

a CID_FaceDict view of the struct pointed to by the font_dicts field.
font_dicts
()

public PS_FontInfo

Returns:

a PS_FontInfo view of the font_info field.
font_info
()

public int

Returns:

the value of the gd_bytes field.
gd_bytes
()

public static long
ncid_count(long struct)

Unsafe version of cid_count.

public static ByteBuffer
ncid_font_name(long struct)

Unsafe version of cid_font_name.

public static String
ncid_font_nameString(long struct)

Unsafe version of cid_font_nameString.

public static int
ncid_font_type(long struct)

Unsafe version of cid_font_type.

public static long
ncid_version(long struct)

Unsafe version of cid_version.

public static long
ncidmap_offset(long struct)

Unsafe version of cidmap_offset.

public static long
ndata_offset(long struct)

Unsafe version of data_offset.

public static int
nfd_bytes(long struct)

Unsafe version of fd_bytes.

public static FT_BBox
nfont_bbox(long struct)

Unsafe version of font_bbox.

public static CID_FaceDict
nfont_dicts(long struct)

Unsafe version of font_dicts.

public static PS_FontInfo
nfont_info(long struct)

Unsafe version of font_info.

public static int
ngd_bytes(long struct)

Unsafe version of gd_bytes.

public static int
nnum_dicts(long struct)

Unsafe version of num_dicts.

public static int
nnum_xuid(long struct)

Unsafe version of num_xuid.

public static ByteBuffer
nordering(long struct)

Unsafe version of ordering.

public static String
norderingString(long struct)

Unsafe version of orderingString.

public static ByteBuffer
nregistry(long struct)

Unsafe version of registry.

public static String
nregistryString(long struct)

Unsafe version of registryString.

public static int
nsupplement(long struct)

Unsafe version of supplement.

public static long
nuid_base(long struct)

Unsafe version of uid_base.

public int

Returns:

the value of the num_dicts field.
num_dicts
()

public int

Returns:

the value of the num_xuid field.
num_xuid
()

public static CLongBuffer
nxuid(long struct)

Unsafe version of xuid.

public static long
nxuid(long struct, int index)

Unsafe version of xuid.

public ByteBuffer

Returns:

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

public String

Returns:

the null-terminated string pointed to by the ordering field.
orderingString
()

public ByteBuffer

Returns:

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

public String

Returns:

the null-terminated string pointed to by the registry field.
registryString
()

public int
sizeof()

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

Returns sizeof(struct).
public int

Returns:

the value of the supplement field.
supplement
()

public long

Returns:

the value of the uid_base field.
uid_base
()

public CLongBuffer

Returns:

a CLongBuffer view of the xuid field.
xuid
()

public long

Returns:

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

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.

CID_COUNTback to summary
public static final int CID_COUNT

The struct member offsets.

CID_FONT_NAMEback to summary
public static final int CID_FONT_NAME

The struct member offsets.

CID_FONT_TYPEback to summary
public static final int CID_FONT_TYPE

The struct member offsets.

CID_VERSIONback to summary
public static final int CID_VERSION

The struct member offsets.

CIDMAP_OFFSETback to summary
public static final int CIDMAP_OFFSET

The struct member offsets.

DATA_OFFSETback to summary
public static final int DATA_OFFSET

The struct member offsets.

FD_BYTESback to summary
public static final int FD_BYTES

The struct member offsets.

FONT_BBOXback to summary
public static final int FONT_BBOX

The struct member offsets.

FONT_DICTSback to summary
public static final int FONT_DICTS

The struct member offsets.

FONT_INFOback to summary
public static final int FONT_INFO

The struct member offsets.

GD_BYTESback to summary
public static final int GD_BYTES

The struct member offsets.

NUM_DICTSback to summary
public static final int NUM_DICTS

The struct member offsets.

NUM_XUIDback to summary
public static final int NUM_XUID

The struct member offsets.

ORDERINGback to summary
public static final int ORDERING

The struct member offsets.

REGISTRYback to summary
public static final int REGISTRY

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

SUPPLEMENTback to summary
public static final int SUPPLEMENT

The struct member offsets.

UID_BASEback to summary
public static final int UID_BASE

The struct member offsets.

XUIDback to summary
public static final int XUID

The struct member offsets.

Constructor Detail

CID_FaceInfoback to summary
protected CID_FaceInfo(long address, ByteBuffer container)
CID_FaceInfoback to summary
public CID_FaceInfo(ByteBuffer container)

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

cid_countback to summary
public long cid_count()
Returns:long

the value of the cid_count field.

Annotations
@NativeType:FT_ULong
cid_font_nameback to summary
public ByteBuffer cid_font_name()
Returns:ByteBuffer

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

Annotations
@NativeType:FT_String *
cid_font_nameStringback to summary
public String cid_font_nameString()
Returns:String

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

Annotations
@NativeType:FT_String *
cid_font_typeback to summary
public int cid_font_type()
Returns:int

the value of the cid_font_type field.

Annotations
@NativeType:FT_Int
cid_versionback to summary
public long cid_version()
Returns:long

the value of the cid_version field.

Annotations
@NativeType:FT_Fixed
cidmap_offsetback to summary
public long cidmap_offset()
Returns:long

the value of the cidmap_offset field.

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

Returns a new CID_FaceInfo instance for the specified memory address.

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

Create a CID_FaceInfo.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static CID_FaceInfo createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

Annotations
@Nullable
data_offsetback to summary
public long data_offset()
Returns:long

the value of the data_offset field.

Annotations
@NativeType:FT_ULong
fd_bytesback to summary
public int fd_bytes()
Returns:int

the value of the fd_bytes field.

Annotations
@NativeType:FT_UInt
font_bboxback to summary
public FT_BBox font_bbox()
Returns:FT_BBox

a FT_BBox view of the font_bbox field.

font_dictsback to summary
public CID_FaceDict font_dicts()
Returns:CID_FaceDict

a CID_FaceDict view of the struct pointed to by the font_dicts field.

font_infoback to summary
public PS_FontInfo font_info()
Returns:PS_FontInfo

a PS_FontInfo view of the font_info field.

Annotations
@NativeType:PS_FontInfoRec
gd_bytesback to summary
public int gd_bytes()
Returns:int

the value of the gd_bytes field.

Annotations
@NativeType:FT_UInt
ncid_countback to summary
public static long ncid_count(long struct)

Unsafe version of cid_count.

ncid_font_nameback to summary
public static ByteBuffer ncid_font_name(long struct)

Unsafe version of cid_font_name.

ncid_font_nameStringback to summary
public static String ncid_font_nameString(long struct)

Unsafe version of cid_font_nameString.

ncid_font_typeback to summary
public static int ncid_font_type(long struct)

Unsafe version of cid_font_type.

ncid_versionback to summary
public static long ncid_version(long struct)

Unsafe version of cid_version.

ncidmap_offsetback to summary
public static long ncidmap_offset(long struct)

Unsafe version of cidmap_offset.

ndata_offsetback to summary
public static long ndata_offset(long struct)

Unsafe version of data_offset.

nfd_bytesback to summary
public static int nfd_bytes(long struct)

Unsafe version of fd_bytes.

nfont_bboxback to summary
public static FT_BBox nfont_bbox(long struct)

Unsafe version of font_bbox.

nfont_dictsback to summary
public static CID_FaceDict nfont_dicts(long struct)

Unsafe version of font_dicts.

nfont_infoback to summary
public static PS_FontInfo nfont_info(long struct)

Unsafe version of font_info.

ngd_bytesback to summary
public static int ngd_bytes(long struct)

Unsafe version of gd_bytes.

nnum_dictsback to summary
public static int nnum_dicts(long struct)

Unsafe version of num_dicts.

nnum_xuidback to summary
public static int nnum_xuid(long struct)

Unsafe version of num_xuid.

norderingback to summary
public static ByteBuffer nordering(long struct)

Unsafe version of ordering.

norderingStringback to summary
public static String norderingString(long struct)

Unsafe version of orderingString.

nregistryback to summary
public static ByteBuffer nregistry(long struct)

Unsafe version of registry.

nregistryStringback to summary
public static String nregistryString(long struct)

Unsafe version of registryString.

nsupplementback to summary
public static int nsupplement(long struct)

Unsafe version of supplement.

nuid_baseback to summary
public static long nuid_base(long struct)

Unsafe version of uid_base.

num_dictsback to summary
public int num_dicts()
Returns:int

the value of the num_dicts field.

Annotations
@NativeType:FT_UInt
num_xuidback to summary
public int num_xuid()
Returns:int

the value of the num_xuid field.

Annotations
@NativeType:FT_Int
nxuidback to summary
public static CLongBuffer nxuid(long struct)

Unsafe version of xuid.

nxuidback to summary
public static long nxuid(long struct, int index)

Unsafe version of xuid.

orderingback to summary
public ByteBuffer ordering()
Returns:ByteBuffer

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

Annotations
@NativeType:FT_String *
orderingStringback to summary
public String orderingString()
Returns:String

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

Annotations
@NativeType:FT_String *
registryback to summary
public ByteBuffer registry()
Returns:ByteBuffer

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

Annotations
@NativeType:FT_String *
registryStringback to summary
public String registryString()
Returns:String

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

Annotations
@NativeType:FT_String *
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
supplementback to summary
public int supplement()
Returns:int

the value of the supplement field.

Annotations
@NativeType:FT_Int
uid_baseback to summary
public long uid_base()
Returns:long

the value of the uid_base field.

Annotations
@NativeType:FT_ULong
xuidback to summary
public CLongBuffer xuid()
Returns:CLongBuffer

a CLongBuffer view of the xuid field.

Annotations
@NativeType:FT_ULong[16]
xuidback to summary
public long xuid(int index)
Returns:long

the value at the specified index of the xuid field.

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

public Class CID_FaceInfo.Buffer

extends StructBuffer<CID_FaceInfo, CID_FaceInfo.Buffer>
Class Inheritance

An array of CID_FaceInfo structs.

Field Summary

Modifier and TypeField and Description
private static final CID_FaceInfo

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new CID_FaceInfo.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 cid_count field.
cid_count
()

public ByteBuffer

Returns:

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

public String

Returns:

the null-terminated string pointed to by the cid_font_name field.
cid_font_nameString
()

public int

Returns:

the value of the cid_font_type field.
cid_font_type
()

public long

Returns:

the value of the cid_version field.
cid_version
()

public long

Returns:

the value of the cidmap_offset field.
cidmap_offset
()

public long

Returns:

the value of the data_offset field.
data_offset
()

public int

Returns:

the value of the fd_bytes field.
fd_bytes
()

public FT_BBox

Returns:

a FT_BBox view of the font_bbox field.
font_bbox
()

public CID_FaceDict

Returns:

a CID_FaceDict view of the struct pointed to by the font_dicts field.
font_dicts
()

public PS_FontInfo

Returns:

a PS_FontInfo view of the font_info field.
font_info
()

public int

Returns:

the value of the gd_bytes field.
gd_bytes
()

protected CID_FaceInfo
public int

Returns:

the value of the num_dicts field.
num_dicts
()

public int

Returns:

the value of the num_xuid field.
num_xuid
()

public ByteBuffer

Returns:

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

public String

Returns:

the null-terminated string pointed to by the ordering field.
orderingString
()

public ByteBuffer

Returns:

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

public String

Returns:

the null-terminated string pointed to by the registry field.
registryString
()

protected CID_FaceInfo.Buffer
public int

Returns:

the value of the supplement field.
supplement
()

public long

Returns:

the value of the uid_base field.
uid_base
()

public CLongBuffer

Returns:

a CLongBuffer view of the xuid field.
xuid
()

public long

Returns:

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

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final CID_FaceInfo ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

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

cid_countback to summary
public long cid_count()
Returns:long

the value of the cid_count field.

Annotations
@NativeType:FT_ULong
cid_font_nameback to summary
public ByteBuffer cid_font_name()
Returns:ByteBuffer

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

Annotations
@NativeType:FT_String *
cid_font_nameStringback to summary
public String cid_font_nameString()
Returns:String

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

Annotations
@NativeType:FT_String *
cid_font_typeback to summary
public int cid_font_type()
Returns:int

the value of the cid_font_type field.

Annotations
@NativeType:FT_Int
cid_versionback to summary
public long cid_version()
Returns:long

the value of the cid_version field.

Annotations
@NativeType:FT_Fixed
cidmap_offsetback to summary
public long cidmap_offset()
Returns:long

the value of the cidmap_offset field.

Annotations
@NativeType:FT_ULong
data_offsetback to summary
public long data_offset()
Returns:long

the value of the data_offset field.

Annotations
@NativeType:FT_ULong
fd_bytesback to summary
public int fd_bytes()
Returns:int

the value of the fd_bytes field.

Annotations
@NativeType:FT_UInt
font_bboxback to summary
public FT_BBox font_bbox()
Returns:FT_BBox

a FT_BBox view of the font_bbox field.

font_dictsback to summary
public CID_FaceDict font_dicts()
Returns:CID_FaceDict

a CID_FaceDict view of the struct pointed to by the font_dicts field.

font_infoback to summary
public PS_FontInfo font_info()
Returns:PS_FontInfo

a PS_FontInfo view of the font_info field.

Annotations
@NativeType:PS_FontInfoRec
gd_bytesback to summary
public int gd_bytes()
Returns:int

the value of the gd_bytes field.

Annotations
@NativeType:FT_UInt
getElementFactoryback to summary
protected CID_FaceInfo getElementFactory()

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

Annotations
@Override
num_dictsback to summary
public int num_dicts()
Returns:int

the value of the num_dicts field.

Annotations
@NativeType:FT_UInt
num_xuidback to summary
public int num_xuid()
Returns:int

the value of the num_xuid field.

Annotations
@NativeType:FT_Int
orderingback to summary
public ByteBuffer ordering()
Returns:ByteBuffer

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

Annotations
@NativeType:FT_String *
orderingStringback to summary
public String orderingString()
Returns:String

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

Annotations
@NativeType:FT_String *
registryback to summary
public ByteBuffer registry()
Returns:ByteBuffer

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

Annotations
@NativeType:FT_String *
registryStringback to summary
public String registryString()
Returns:String

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

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

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

Annotations
@Override
supplementback to summary
public int supplement()
Returns:int

the value of the supplement field.

Annotations
@NativeType:FT_Int
uid_baseback to summary
public long uid_base()
Returns:long

the value of the uid_base field.

Annotations
@NativeType:FT_ULong
xuidback to summary
public CLongBuffer xuid()
Returns:CLongBuffer

a CLongBuffer view of the xuid field.

Annotations
@NativeType:FT_ULong[16]
xuidback to summary
public long xuid(int index)
Returns:long

the value at the specified index of the xuid field.

Annotations
@NativeType:FT_ULong