Package org.lwjgl.util.freetype
Class PS_FontInfo
- All Implemented Interfaces:
Pointer
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 Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionPS_FontInfo
(ByteBuffer container) Creates aPS_FontInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic PS_FontInfo
create
(long address) Returns a newPS_FontInfo
instance for the specified memory address.static PS_FontInfo.Buffer
create
(long address, int capacity) Create aPS_FontInfo.Buffer
instance at the specified memory.static @Nullable PS_FontInfo
createSafe
(long address) static @Nullable PS_FontInfo.Buffer
createSafe
(long address, int capacity) boolean
long
static ByteBuffer
nfamily_name
(long struct) Unsafe version offamily_name()
.static String
nfamily_nameString
(long struct) Unsafe version offamily_nameString()
.static ByteBuffer
nfull_name
(long struct) Unsafe version offull_name()
.static String
nfull_nameString
(long struct) Unsafe version offull_nameString()
.static boolean
nis_fixed_pitch
(long struct) Unsafe version ofis_fixed_pitch()
.static long
nitalic_angle
(long struct) Unsafe version ofitalic_angle()
.static ByteBuffer
nnotice
(long struct) Unsafe version ofnotice()
.static String
nnoticeString
(long struct) Unsafe version ofnoticeString()
.notice()
static short
nunderline_position
(long struct) Unsafe version ofunderline_position()
.static short
nunderline_thickness
(long struct) Unsafe version ofunderline_thickness()
.static ByteBuffer
nversion
(long struct) Unsafe version ofversion()
.static String
nversionString
(long struct) Unsafe version ofversionString()
.static ByteBuffer
nweight
(long struct) Unsafe version ofweight()
.static String
nweightString
(long struct) Unsafe version ofweightString()
.int
sizeof()
Returnssizeof(struct)
.short
short
version()
weight()
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
VERSION
public static final int VERSIONThe struct member offsets. -
NOTICE
public static final int NOTICEThe struct member offsets. -
FULL_NAME
public static final int FULL_NAMEThe struct member offsets. -
FAMILY_NAME
public static final int FAMILY_NAMEThe struct member offsets. -
WEIGHT
public static final int WEIGHTThe struct member offsets. -
ITALIC_ANGLE
public static final int ITALIC_ANGLEThe struct member offsets. -
IS_FIXED_PITCH
public static final int IS_FIXED_PITCHThe struct member offsets. -
UNDERLINE_POSITION
public static final int UNDERLINE_POSITIONThe struct member offsets. -
UNDERLINE_THICKNESS
public static final int UNDERLINE_THICKNESSThe struct member offsets.
-
-
Constructor Details
-
PS_FontInfo
Creates aPS_FontInfo
instance at the current position of the specifiedByteBuffer
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<PS_FontInfo>
-
version
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by theversion
field.
-
versionString
- Returns:
- the null-terminated string pointed to by the
version
field.
-
notice
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thenotice
field.
-
noticeString
- Returns:
- the null-terminated string pointed to by the
notice
field.
-
full_name
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thefull_name
field.
-
full_nameString
- Returns:
- the null-terminated string pointed to by the
full_name
field.
-
family_name
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thefamily_name
field.
-
family_nameString
- Returns:
- the null-terminated string pointed to by the
family_name
field.
-
weight
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by theweight
field.
-
weightString
- Returns:
- the null-terminated string pointed to by the
weight
field.
-
italic_angle
public long italic_angle()- Returns:
- the value of the
italic_angle
field.
-
is_fixed_pitch
public boolean is_fixed_pitch()- Returns:
- the value of the
is_fixed_pitch
field.
-
underline_position
public short underline_position()- Returns:
- the value of the
underline_position
field.
-
underline_thickness
public short underline_thickness()- Returns:
- the value of the
underline_thickness
field.
-
create
Returns a newPS_FontInfo
instance for the specified memory address. -
createSafe
-
create
Create aPS_FontInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
nversion
Unsafe version ofversion()
. -
nversionString
Unsafe version ofversionString()
. -
nnotice
Unsafe version ofnotice()
. -
nnoticeString
Unsafe version ofnoticeString()
. -
nfull_name
Unsafe version offull_name()
. -
nfull_nameString
Unsafe version offull_nameString()
. -
nfamily_name
Unsafe version offamily_name()
. -
nfamily_nameString
Unsafe version offamily_nameString()
. -
nweight
Unsafe version ofweight()
. -
nweightString
Unsafe version ofweightString()
. -
nitalic_angle
public static long nitalic_angle(long struct) Unsafe version ofitalic_angle()
. -
nis_fixed_pitch
public static boolean nis_fixed_pitch(long struct) Unsafe version ofis_fixed_pitch()
. -
nunderline_position
public static short nunderline_position(long struct) Unsafe version ofunderline_position()
. -
nunderline_thickness
public static short nunderline_thickness(long struct) Unsafe version ofunderline_thickness()
.
-