Package org.apache.fontbox.ttf
Class PostScriptTable
java.lang.Object
org.apache.fontbox.ttf.TTFTable
org.apache.fontbox.ttf.PostScriptTable
This 'post'-table is a required table in a TrueType-font.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate floatprivate String[]private longprivate floatprivate static final org.apache.commons.logging.Logprivate longprivate longprivate longprivate longstatic final StringA tag that identifies this table type.private shortprivate shortFields inherited from class org.apache.fontbox.ttf.TTFTable
initialized -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatString[]longfloatlonglonglonglonggetName(int gid) Returns the glyph name of the given GID.shortshort(package private) voidread(TrueTypeFont ttf, TTFDataStream data) This will read the required data from the stream.voidsetFormatType(float formatTypeValue) voidsetGlyphNames(String[] glyphNamesValue) voidsetIsFixedPitch(long isFixedPitchValue) voidsetItalicAngle(float italicAngleValue) voidsetMaxMemType1(long maxMemType1Value) voidsetMaxMemType42(long maxMemType42Value) voidsetMimMemType1(long mimMemType1Value) voidsetMinMemType42(long minMemType42Value) voidsetUnderlinePosition(short underlinePositionValue) voidsetUnderlineThickness(short underlineThicknessValue) Methods inherited from class org.apache.fontbox.ttf.TTFTable
getCheckSum, getInitialized, getLength, getOffset, getTag, readHeaders, setCheckSum, setLength, setOffset, setTag
-
Field Details
-
LOG
private static final org.apache.commons.logging.Log LOG -
formatType
private float formatType -
italicAngle
private float italicAngle -
underlinePosition
private short underlinePosition -
underlineThickness
private short underlineThickness -
isFixedPitch
private long isFixedPitch -
minMemType42
private long minMemType42 -
maxMemType42
private long maxMemType42 -
mimMemType1
private long mimMemType1 -
maxMemType1
private long maxMemType1 -
glyphNames
-
TAG
A tag that identifies this table type.- See Also:
-
-
Constructor Details
-
PostScriptTable
PostScriptTable()
-
-
Method Details
-
read
This will read the required data from the stream.- Overrides:
readin classTTFTable- Parameters:
ttf- The font that is being read.data- The stream to read the data from.- Throws:
IOException- If there is an error reading the data.
-
getFormatType
public float getFormatType()- Returns:
- Returns the formatType.
-
setFormatType
public void setFormatType(float formatTypeValue) - Parameters:
formatTypeValue- The formatType to set.
-
getIsFixedPitch
public long getIsFixedPitch()- Returns:
- Returns the isFixedPitch.
-
setIsFixedPitch
public void setIsFixedPitch(long isFixedPitchValue) - Parameters:
isFixedPitchValue- The isFixedPitch to set.
-
getItalicAngle
public float getItalicAngle()- Returns:
- Returns the italicAngle.
-
setItalicAngle
public void setItalicAngle(float italicAngleValue) - Parameters:
italicAngleValue- The italicAngle to set.
-
getMaxMemType1
public long getMaxMemType1()- Returns:
- Returns the maxMemType1.
-
setMaxMemType1
public void setMaxMemType1(long maxMemType1Value) - Parameters:
maxMemType1Value- The maxMemType1 to set.
-
getMaxMemType42
public long getMaxMemType42()- Returns:
- Returns the maxMemType42.
-
setMaxMemType42
public void setMaxMemType42(long maxMemType42Value) - Parameters:
maxMemType42Value- The maxMemType42 to set.
-
getMinMemType1
public long getMinMemType1()- Returns:
- Returns the mimMemType1.
-
setMimMemType1
public void setMimMemType1(long mimMemType1Value) - Parameters:
mimMemType1Value- The mimMemType1 to set.
-
getMinMemType42
public long getMinMemType42()- Returns:
- Returns the minMemType42.
-
setMinMemType42
public void setMinMemType42(long minMemType42Value) - Parameters:
minMemType42Value- The minMemType42 to set.
-
getUnderlinePosition
public short getUnderlinePosition()- Returns:
- Returns the underlinePosition.
-
setUnderlinePosition
public void setUnderlinePosition(short underlinePositionValue) - Parameters:
underlinePositionValue- The underlinePosition to set.
-
getUnderlineThickness
public short getUnderlineThickness()- Returns:
- Returns the underlineThickness.
-
setUnderlineThickness
public void setUnderlineThickness(short underlineThicknessValue) - Parameters:
underlineThicknessValue- The underlineThickness to set.
-
getGlyphNames
- Returns:
- Returns the glyphNames.
-
setGlyphNames
- Parameters:
glyphNamesValue- The glyphNames to set.
-
getName
Returns the glyph name of the given GID.- Parameters:
gid- the GID of the glyph name- Returns:
- the glyph name for the given glyph name or null
-