Package org.apache.fontbox.ttf
Class GlyphData
java.lang.Object
org.apache.fontbox.ttf.GlyphData
A glyph data record in the glyf table.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BoundingBox
private GlyfDescript
private short
private short
private short
private short
private short
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the description of the glyph.short
getPath()
Returns the path of the glyph.short
Returns the xMax value.short
Returns the xMin value.short
Returns the yMax value.short
Returns the yMin value.(package private) void
initData
(GlyphTable glyphTable, TTFDataStream data, int leftSideBearing) This will read the required data from the stream.(package private) void
Initialize an empty glyph record.void
setBoundingBox
(BoundingBox boundingBoxValue) void
setNumberOfContours
(short numberOfContoursValue)
-
Field Details
-
xMin
private short xMin -
yMin
private short yMin -
xMax
private short xMax -
yMax
private short yMax -
boundingBox
-
numberOfContours
private short numberOfContours -
glyphDescription
-
-
Constructor Details
-
GlyphData
public GlyphData()
-
-
Method Details
-
initData
This will read the required data from the stream.- Parameters:
glyphTable
- The glyph table this glyph belongs to.data
- The stream to read the data from.leftSideBearing
- The left side bearing for this glyph.- Throws:
IOException
- If there is an error reading the data.
-
initEmptyData
Initialize an empty glyph record.- Throws:
IOException
-
getBoundingBox
- Returns:
- Returns the boundingBox.
-
setBoundingBox
- Parameters:
boundingBoxValue
- The boundingBox to set.
-
getNumberOfContours
public short getNumberOfContours()- Returns:
- Returns the numberOfContours.
-
setNumberOfContours
public void setNumberOfContours(short numberOfContoursValue) - Parameters:
numberOfContoursValue
- The numberOfContours to set.
-
getDescription
Returns the description of the glyph.- Returns:
- the glyph description
-
getPath
Returns the path of the glyph.- Returns:
- the path
-
getXMaximum
public short getXMaximum()Returns the xMax value.- Returns:
- the XMax value
-
getXMinimum
public short getXMinimum()Returns the xMin value.- Returns:
- the xMin value
-
getYMaximum
public short getYMaximum()Returns the yMax value.- Returns:
- the yMax value
-
getYMinimum
public short getYMinimum()Returns the yMin value.- Returns:
- the yMin value
-