The minimum, default, and maximum values are in un-normalized, user scales.
Note
at present, the only flag defined for flags is VAR_AXIS_FLAG_HIDDEN.
struct hb_ot_var_axis_info_t {
unsigned int axis_index;
hb_tag_t tag;
hb_ot_name_id_t name_id;
hb_ot_var_axis_flags_t flags;
float min_value;
float default_value;
float max_value;
unsigned int reserved;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | hb_ot_var_axis_info_t.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | AXIS_INDEX
The struct member offsets. |
| public static final int | DEFAULT_VALUE
The struct member offsets. |
| public static final int | FLAGS
The struct member offsets. |
| public static final int | MAX_VALUE
The struct member offsets. |
| public static final int | MIN_VALUE
The struct member offsets. |
| public static final int | NAME_ID
The struct member offsets. |
| public static final int | RESERVED
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | TAG
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | hb_ot_var_axis_info_t(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public hb_ot_var_axis_info_t | |
| public static hb_ot_var_axis_info_t | |
| public static hb_ot_var_axis_info_t. | calloc(int
the buffer capacity capacity)Returns a new |
| public static hb_ot_var_axis_info_t | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static hb_ot_var_axis_info_t. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected hb_ot_var_axis_info_t | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static hb_ot_var_axis_info_t | |
| public static hb_ot_var_axis_info_t | |
| public static hb_ot_var_axis_info_t. | create(int
the buffer capacity capacity)Returns a new |
| public static hb_ot_var_axis_info_t. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static hb_ot_var_axis_info_t | |
| public static hb_ot_var_axis_info_t. | |
| public float | |
| public hb_ot_var_axis_info_t | |
| public int | |
| public hb_ot_var_axis_info_t | |
| public static hb_ot_var_axis_info_t | |
| public static hb_ot_var_axis_info_t. | malloc(int
the buffer capacity capacity)Returns a new |
| public static hb_ot_var_axis_info_t | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static hb_ot_var_axis_info_t. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public float | |
| public hb_ot_var_axis_info_t | |
| public float | |
| public hb_ot_var_axis_info_t | |
| public int | |
| public hb_ot_var_axis_info_t | |
| public static int | |
| public static void | |
| public static float | |
| public static void | |
| public static int | |
| public static void | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public hb_ot_var_axis_info_t | set(int axis_index, int tag, int name_id, int flags, float min_value, float default_value, float max_value)
Initializes this struct with the specified values. |
| public hb_ot_var_axis_info_t | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public hb_ot_var_axis_info_t |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| AXIS_INDEX | back to summary |
|---|---|
| public static final int AXIS_INDEX The struct member offsets. | |
| DEFAULT_VALUE | back to summary |
|---|---|
| public static final int DEFAULT_VALUE The struct member offsets. | |
| FLAGS | back to summary |
|---|---|
| public static final int FLAGS The struct member offsets. | |
| MAX_VALUE | back to summary |
|---|---|
| public static final int MAX_VALUE The struct member offsets. | |
| MIN_VALUE | back to summary |
|---|---|
| public static final int MIN_VALUE The struct member offsets. | |
| NAME_ID | back to summary |
|---|---|
| public static final int NAME_ID The struct member offsets. | |
| RESERVED | back to summary |
|---|---|
| public static final int RESERVED The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| TAG | back to summary |
|---|---|
| public static final int TAG The struct member offsets. | |
| hb_ot_var_axis_info_t | back to summary |
|---|---|
| protected hb_ot_var_axis_info_t(long address, ByteBuffer container) | |
| hb_ot_var_axis_info_t | back to summary |
|---|---|
| public hb_ot_var_axis_info_t(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| axis_index | back to summary |
|---|---|
| public int axis_index() index of the axis in the variation-axis array
| |
| axis_index | back to summary |
|---|---|
| public hb_ot_var_axis_info_t axis_index(int value) Sets the specified value to the | |
| calloc | back to summary |
|---|---|
| public static hb_ot_var_axis_info_t calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static hb_ot_var_axis_info_t. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static hb_ot_var_axis_info_t calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static hb_ot_var_axis_info_t. Returns a new
| |
| create | back to summary |
|---|---|
| protected hb_ot_var_axis_info_t create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static hb_ot_var_axis_info_t create() Returns a new | |
| create | back to summary |
|---|---|
| public static hb_ot_var_axis_info_t create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static hb_ot_var_axis_info_t. Returns a new
| |
| create | back to summary |
|---|---|
| public static hb_ot_var_axis_info_t. Create a
| |
| createSafe | back to summary |
|---|---|
| public static hb_ot_var_axis_info_t createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static hb_ot_var_axis_info_t. Like
| |
| default_value | back to summary |
|---|---|
| public float default_value() the position on the variation axis corresponding to the font's defaults | |
| default_value | back to summary |
|---|---|
| public hb_ot_var_axis_info_t default_value(float value) Sets the specified value to the | |
| flags | back to summary |
|---|---|
| public int flags() the
| |
| flags | back to summary |
|---|---|
| public hb_ot_var_axis_info_t flags(int value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static hb_ot_var_axis_info_t malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static hb_ot_var_axis_info_t. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static hb_ot_var_axis_info_t malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static hb_ot_var_axis_info_t. Returns a new
| |
| max_value | back to summary |
|---|---|
| public float max_value() the maximum value on the variation axis that the font covers | |
| max_value | back to summary |
|---|---|
| public hb_ot_var_axis_info_t max_value(float value) Sets the specified value to the | |
| min_value | back to summary |
|---|---|
| public float min_value() the minimum value on the variation axis that the font covers | |
| min_value | back to summary |
|---|---|
| public hb_ot_var_axis_info_t min_value(float value) Sets the specified value to the | |
| name_id | back to summary |
|---|---|
| public int name_id() the
| |
| name_id | back to summary |
|---|---|
| public hb_ot_var_axis_info_t name_id(int value) Sets the specified value to the | |
| naxis_index | back to summary |
|---|---|
| public static int naxis_index(long struct) Unsafe version of | |
| naxis_index | back to summary |
|---|---|
| public static void naxis_index(long struct, int value) Unsafe version of | |
| ndefault_value | back to summary |
|---|---|
| public static float ndefault_value(long struct) Unsafe version of | |
| ndefault_value | back to summary |
|---|---|
| public static void ndefault_value(long struct, float value) Unsafe version of | |
| nflags | back to summary |
|---|---|
| public static int nflags(long struct) Unsafe version of | |
| nflags | back to summary |
|---|---|
| public static void nflags(long struct, int value) Unsafe version of | |
| nmax_value | back to summary |
|---|---|
| public static float nmax_value(long struct) Unsafe version of | |
| nmax_value | back to summary |
|---|---|
| public static void nmax_value(long struct, float value) Unsafe version of | |
| nmin_value | back to summary |
|---|---|
| public static float nmin_value(long struct) Unsafe version of | |
| nmin_value | back to summary |
|---|---|
| public static void nmin_value(long struct, float value) Unsafe version of | |
| nname_id | back to summary |
|---|---|
| public static int nname_id(long struct) Unsafe version of | |
| nname_id | back to summary |
|---|---|
| public static void nname_id(long struct, int value) Unsafe version of | |
| nreserved | back to summary |
|---|---|
| public static int nreserved(long struct) | |
| nreserved | back to summary |
|---|---|
| public static void nreserved(long struct, int value) | |
| ntag | back to summary |
|---|---|
| public static int ntag(long struct) Unsafe version of | |
| ntag | back to summary |
|---|---|
| public static void ntag(long struct, int value) Unsafe version of | |
| set | back to summary |
|---|---|
| public hb_ot_var_axis_info_t set(int axis_index, int tag, int name_id, int flags, float min_value, float default_value, float max_value) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public hb_ot_var_axis_info_t set(hb_ot_var_axis_info_t src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| tag | back to summary |
|---|---|
| public int tag() the
| |
| tag | back to summary |
|---|---|
| public hb_ot_var_axis_info_t tag(int value) Sets the specified value to the | |
hb_ot_var_axis_info_t structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final hb_ot_var_axis_info_t |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public hb_ot_var_axis_info_t. | |
| public float | |
| public hb_ot_var_axis_info_t. | default_value(float value)
Sets the specified value to the |
| public int | |
| public hb_ot_var_axis_info_t. | |
| protected hb_ot_var_axis_info_t | |
| public float | |
| public hb_ot_var_axis_info_t. | |
| public float | |
| public hb_ot_var_axis_info_t. | |
| public int | |
| public hb_ot_var_axis_info_t. | |
| protected hb_ot_var_axis_info_t. | |
| public int | |
| public hb_ot_var_axis_info_t. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final hb_ot_var_axis_info_t ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new 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 The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| axis_index | back to summary |
|---|---|
public int axis_index()
| |
| axis_index | back to summary |
|---|---|
| public hb_ot_var_axis_info_t. Sets the specified value to the | |
| default_value | back to summary |
|---|---|
public float default_value()
| |
| default_value | back to summary |
|---|---|
| public hb_ot_var_axis_info_t. Sets the specified value to the | |
| flags | back to summary |
|---|---|
public int flags()
| |
| flags | back to summary |
|---|---|
| public hb_ot_var_axis_info_t. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected hb_ot_var_axis_info_t getElementFactory() Implements abstract org.
| |
| max_value | back to summary |
|---|---|
public float max_value()
| |
| max_value | back to summary |
|---|---|
| public hb_ot_var_axis_info_t. Sets the specified value to the | |
| min_value | back to summary |
|---|---|
public float min_value()
| |
| min_value | back to summary |
|---|---|
| public hb_ot_var_axis_info_t. Sets the specified value to the | |
| name_id | back to summary |
|---|---|
public int name_id()
| |
| name_id | back to summary |
|---|---|
| public hb_ot_var_axis_info_t. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected hb_ot_var_axis_info_t. Implements abstract org.
| |
| tag | back to summary |
|---|---|
public int tag()
| |
| tag | back to summary |
|---|---|
| public hb_ot_var_axis_info_t. Sets the specified value to the | |