public abstract class FontData
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FontData.DataSize
Note: Enum names intended to match the names used in the OpenType and sfnt specs.
|
Modifier and Type | Method and Description |
---|---|
boolean |
bound(int offset)
Sets limits on the size of the FontData.
|
boolean |
bound(int offset,
int length)
Sets limits on the size of the FontData.
|
int |
length()
Gets the length of the data.
|
int |
size()
Gets the maximum size of the FontData.
|
abstract FontData |
slice(int offset)
Makes a bottom bound only slice of this array.
|
abstract FontData |
slice(int offset,
int length)
Makes a slice of this FontData.
|
public boolean bound(int offset, int length)
offset
- the start of the new boundslength
- the number of bytes in the bounded arraypublic boolean bound(int offset)
offset
- the start of the new bounds which must be within the current
size of the FontDatapublic abstract FontData slice(int offset, int length)
FontData
.offset
- the start of the slicelength
- the number of bytes in the slicepublic abstract FontData slice(int offset)
FontData
.offset
- the start of the slicepublic int length()
public int size()