PackFontRanges
struct stbtt_pack_range {
float font_size;
int first_unicode_codepoint_in_range;
int * array_of_unicode_codepoints;
int num_chars;
stbtt_packedchar * chardata_for_range;
unsigned char h_oversample;
unsigned char v_oversample;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | STBTTPackRange.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | ARRAY_OF_UNICODE_CODEPOINTS
The struct member offsets. |
| public static final int | CHARDATA_FOR_RANGE
The struct member offsets. |
| public static final int | FIRST_UNICODE_CODEPOINT_IN_RANGE
The struct member offsets. |
| public static final int | FONT_SIZE
The struct member offsets. |
| public static final int | H_OVERSAMPLE
The struct member offsets. |
| public static final int | NUM_CHARS
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | V_OVERSAMPLE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | STBTTPackRange(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public IntBuffer | |
| public STBTTPackRange | array_of_unicode_codepoints(IntBuffer value)
Sets the address of the specified |
| public static STBTTPackRange | |
| public static STBTTPackRange. | calloc(int
the buffer capacity capacity)Returns a new |
| public static STBTTPackRange | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static STBTTPackRange. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static STBTTPackRange | |
| public static STBTTPackRange | |
| public static STBTTPackRange. | |
| public static STBTTPackRange. | |
| public STBTTPackedchar. | |
| public STBTTPackRange | chardata_for_range(STBTTPackedchar.
Sets the address of the specified |
| protected STBTTPackRange | 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 STBTTPackRange | |
| public static STBTTPackRange | |
| public static STBTTPackRange. | create(int
the buffer capacity capacity)Returns a new |
| public static STBTTPackRange. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static STBTTPackRange | |
| public static STBTTPackRange. | |
| public int | first_unicode_codepoint_in_range()
if non-zero, then the chars are continuous, and this is the first codepoint |
| public STBTTPackRange | first_unicode_codepoint_in_range(int value)
Sets the specified value to the |
| public float | |
| public STBTTPackRange | |
| public byte | |
| public STBTTPackRange | |
| public static STBTTPackRange | |
| public static STBTTPackRange. | malloc(int
the buffer capacity capacity)Returns a new |
| public static STBTTPackRange | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static STBTTPackRange. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static STBTTPackRange | |
| public static STBTTPackRange | |
| public static STBTTPackRange. | |
| public static STBTTPackRange. | |
| public static IntBuffer | |
| public static void | narray_of_unicode_codepoints(long struct, IntBuffer value)
Unsafe version of |
| public static STBTTPackedchar. | |
| public static void | |
| public static int | |
| public static void | nfirst_unicode_codepoint_in_range(long struct, int value)
Unsafe version of |
| public static float | |
| public static void | |
| public static byte | |
| public static void | |
| public static int | |
| public static void | nnum_chars(long struct, int value)
Sets the specified value to the |
| public int | |
| public STBTTPackRange | |
| public static byte | |
| public static void | |
| public STBTTPackRange | set(float font_size, int first_unicode_codepoint_in_range, IntBuffer array_of_unicode_codepoints, int num_chars, STBTTPackedchar.
Initializes this struct with the specified values. |
| public STBTTPackRange | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public byte | |
| public STBTTPackRange | |
| public static void |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| ARRAY_OF_UNICODE_CODEPOINTS | back to summary |
|---|---|
| public static final int ARRAY_OF_UNICODE_CODEPOINTS The struct member offsets. | |
| CHARDATA_FOR_RANGE | back to summary |
|---|---|
| public static final int CHARDATA_FOR_RANGE The struct member offsets. | |
| FIRST_UNICODE_CODEPOINT_IN_RANGE | back to summary |
|---|---|
| public static final int FIRST_UNICODE_CODEPOINT_IN_RANGE The struct member offsets. | |
| FONT_SIZE | back to summary |
|---|---|
| public static final int FONT_SIZE The struct member offsets. | |
| H_OVERSAMPLE | back to summary |
|---|---|
| public static final int H_OVERSAMPLE The struct member offsets. | |
| NUM_CHARS | back to summary |
|---|---|
| public static final int NUM_CHARS The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| V_OVERSAMPLE | back to summary |
|---|---|
| public static final int V_OVERSAMPLE The struct member offsets. | |
| STBTTPackRange | back to summary |
|---|---|
| protected STBTTPackRange(long address, ByteBuffer container) | |
| STBTTPackRange | back to summary |
|---|---|
| public STBTTPackRange(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| array_of_unicode_codepoints | back to summary |
|---|---|
| public IntBuffer array_of_unicode_codepoints() if non-zero, then this is an array of unicode codepoints
| |
| array_of_unicode_codepoints | back to summary |
|---|---|
| public STBTTPackRange array_of_unicode_codepoints(IntBuffer value) Sets the address of the specified | |
| calloc | back to summary |
|---|---|
| public static STBTTPackRange calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static STBTTPackRange. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static STBTTPackRange calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static STBTTPackRange. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static STBTTPackRange callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static STBTTPackRange callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static STBTTPackRange. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static STBTTPackRange. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| chardata_for_range | back to summary |
|---|---|
| public STBTTPackedchar. output
| |
| chardata_for_range | back to summary |
|---|---|
| public STBTTPackRange chardata_for_range(STBTTPackedchar. Sets the address of the specified | |
| create | back to summary |
|---|---|
| protected STBTTPackRange create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static STBTTPackRange create() Returns a new | |
| create | back to summary |
|---|---|
| public static STBTTPackRange create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static STBTTPackRange. Returns a new
| |
| create | back to summary |
|---|---|
| public static STBTTPackRange. Create a
| |
| createSafe | back to summary |
|---|---|
| public static STBTTPackRange createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static STBTTPackRange. Like
| |
| first_unicode_codepoint_in_range | back to summary |
|---|---|
| public int first_unicode_codepoint_in_range() if non-zero, then the chars are continuous, and this is the first codepoint | |
| first_unicode_codepoint_in_range | back to summary |
|---|---|
| public STBTTPackRange first_unicode_codepoint_in_range(int value) Sets the specified value to the | |
| font_size | back to summary |
|---|---|
| public float font_size() the font size | |
| font_size | back to summary |
|---|---|
| public STBTTPackRange font_size(float value) Sets the specified value to the | |
| h_oversample | back to summary |
|---|---|
| public byte h_oversample() used internally
| |
| h_oversample | back to summary |
|---|---|
| public STBTTPackRange h_oversample(byte value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static STBTTPackRange malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static STBTTPackRange. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static STBTTPackRange malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static STBTTPackRange. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static STBTTPackRange mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static STBTTPackRange mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static STBTTPackRange. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static STBTTPackRange. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| narray_of_unicode_codepoints | back to summary |
|---|---|
| public static IntBuffer narray_of_unicode_codepoints(long struct) Unsafe version of
| |
| narray_of_unicode_codepoints | back to summary |
|---|---|
| public static void narray_of_unicode_codepoints(long struct, IntBuffer value) Unsafe version of | |
| nchardata_for_range | back to summary |
|---|---|
| public static STBTTPackedchar. Unsafe version of | |
| nchardata_for_range | back to summary |
|---|---|
| public static void nchardata_for_range(long struct, STBTTPackedchar. Unsafe version of | |
| nfirst_unicode_codepoint_in_range | back to summary |
|---|---|
| public static int nfirst_unicode_codepoint_in_range(long struct) Unsafe version of | |
| nfirst_unicode_codepoint_in_range | back to summary |
|---|---|
| public static void nfirst_unicode_codepoint_in_range(long struct, int value) Unsafe version of | |
| nfont_size | back to summary |
|---|---|
| public static float nfont_size(long struct) Unsafe version of | |
| nfont_size | back to summary |
|---|---|
| public static void nfont_size(long struct, float value) Unsafe version of | |
| nh_oversample | back to summary |
|---|---|
| public static byte nh_oversample(long struct) Unsafe version of | |
| nh_oversample | back to summary |
|---|---|
| public static void nh_oversample(long struct, byte value) Unsafe version of | |
| nnum_chars | back to summary |
|---|---|
| public static int nnum_chars(long struct) Unsafe version of | |
| nnum_chars | back to summary |
|---|---|
| public static void nnum_chars(long struct, int value) Sets the specified value to the | |
| num_chars | back to summary |
|---|---|
| public int num_chars() the number of codepoints in the range | |
| num_chars | back to summary |
|---|---|
| public STBTTPackRange num_chars(int value) Sets the specified value to the | |
| nv_oversample | back to summary |
|---|---|
| public static byte nv_oversample(long struct) Unsafe version of | |
| nv_oversample | back to summary |
|---|---|
| public static void nv_oversample(long struct, byte value) Unsafe version of | |
| set | back to summary |
|---|---|
| public STBTTPackRange set(float font_size, int first_unicode_codepoint_in_range, IntBuffer array_of_unicode_codepoints, int num_chars, STBTTPackedchar. Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public STBTTPackRange set(STBTTPackRange src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| v_oversample | back to summary |
|---|---|
| public byte v_oversample() used internally
| |
| v_oversample | back to summary |
|---|---|
| public STBTTPackRange v_oversample(byte value) Sets the specified value to the | |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
STBTTPackRange structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final STBTTPackRange |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final STBTTPackRange 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) | |
| array_of_unicode_codepoints | back to summary |
|---|---|
public IntBuffer array_of_unicode_codepoints()
| |
| array_of_unicode_codepoints | back to summary |
|---|---|
| public STBTTPackRange. Sets the address of the specified | |
| chardata_for_range | back to summary |
|---|---|
public STBTTPackedchar.
| |
| chardata_for_range | back to summary |
|---|---|
| public STBTTPackRange. Sets the address of the specified | |
| first_unicode_codepoint_in_range | back to summary |
|---|---|
public int first_unicode_codepoint_in_range()
| |
| first_unicode_codepoint_in_range | back to summary |
|---|---|
| public STBTTPackRange. Sets the specified value to the | |
| font_size | back to summary |
|---|---|
public float font_size()
| |
| font_size | back to summary |
|---|---|
| public STBTTPackRange. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected STBTTPackRange getElementFactory() Implements abstract org.
| |
| h_oversample | back to summary |
|---|---|
public byte h_oversample()
| |
| h_oversample | back to summary |
|---|---|
| public STBTTPackRange. Sets the specified value to the | |
| num_chars | back to summary |
|---|---|
public int num_chars()
| |
| num_chars | back to summary |
|---|---|
| public STBTTPackRange. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected STBTTPackRange. Implements abstract org.
| |
| v_oversample | back to summary |
|---|---|
public byte v_oversample()
| |
| v_oversample | back to summary |
|---|---|
| public STBTTPackRange. Sets the specified value to the | |