Class GlyphData
java.lang.Object
org.ofdrw.converter.font.GlyphData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.fontbox.util.BoundingBoxorg.apache.fontbox.ttf.GlyphDescriptionReturns the description of the glyph.shortgetPath()Returns the path of the glyph.shortReturns the xMax value.shortReturns the xMin value.shortReturns the yMax value.shortReturns the yMin value.voidreadData(TTFDataStream data, int leftSideBearing, GlyphDataProvider provider) This will read the required data from the stream.voidsetBoundingBox(org.apache.fontbox.util.BoundingBox boundingBoxValue) voidsetNumberOfContours(short numberOfContoursValue)
-
Constructor Details
-
GlyphData
public GlyphData() -
GlyphData
-
-
Method Details
-
readData
public void readData(TTFDataStream data, int leftSideBearing, GlyphDataProvider provider) throws IOException This will read the required data from the stream.- Parameters:
data- The stream to read the data from.leftSideBearing- The left side bearing for this glyph.provider- 字形数据提供器,用于在符合字形时工作。- Throws:
IOException- If there is an error reading the data.
-
getBoundingBox
public org.apache.fontbox.util.BoundingBox getBoundingBox()- Returns:
- Returns the boundingBox.
-
setBoundingBox
public void setBoundingBox(org.apache.fontbox.util.BoundingBox boundingBoxValue) - 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
public org.apache.fontbox.ttf.GlyphDescription getDescription()Returns the description of the glyph.- Returns:
- the glyph description
-
getPath
-
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
-