public class GlyphData extends Object
| 构造器和说明 |
|---|
GlyphData() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.fontbox.util.BoundingBox |
getBoundingBox() |
org.apache.fontbox.ttf.GlyphDescription |
getDescription()
Returns the description of the glyph.
|
short |
getNumberOfContours() |
GeneralPath |
getPath()
Returns the path of the glyph.
|
short |
getXMaximum()
Returns the xMax value.
|
short |
getXMinimum()
Returns the xMin value.
|
short |
getYMaximum()
Returns the yMax value.
|
short |
getYMinimum()
Returns the yMin value.
|
void |
readData(TTFDataStream data,
int leftSideBearing,
GlyphDataProvider provider)
This will read the required data from the stream.
|
void |
setBoundingBox(org.apache.fontbox.util.BoundingBox boundingBoxValue) |
void |
setNumberOfContours(short numberOfContoursValue) |
public void readData(TTFDataStream data, int leftSideBearing, GlyphDataProvider provider) throws IOException
data - The stream to read the data from.leftSideBearing - The left side bearing for this glyph.provider - 字形数据提供器,用于在符合字形时工作。IOException - If there is an error reading the data.public org.apache.fontbox.util.BoundingBox getBoundingBox()
public void setBoundingBox(org.apache.fontbox.util.BoundingBox boundingBoxValue)
boundingBoxValue - The boundingBox to set.public short getNumberOfContours()
public void setNumberOfContours(short numberOfContoursValue)
numberOfContoursValue - The numberOfContours to set.public org.apache.fontbox.ttf.GlyphDescription getDescription()
public GeneralPath getPath()
public short getXMaximum()
public short getXMinimum()
public short getYMaximum()
public short getYMinimum()
Copyright © 2024. All rights reserved.