Package org.apache.fontbox.ttf
Class MaximumProfileTable
- java.lang.Object
-
- org.apache.fontbox.ttf.TTFTable
-
- org.apache.fontbox.ttf.MaximumProfileTable
-
public class MaximumProfileTable extends TTFTable
This 'maxp'-table is a required table in a TrueType font.
-
-
Field Summary
Fields Modifier and Type Field Description private intmaxComponentDepthprivate intmaxComponentElementsprivate intmaxCompositeContoursprivate intmaxCompositePointsprivate intmaxContoursprivate intmaxFunctionDefsprivate intmaxInstructionDefsprivate intmaxPointsprivate intmaxSizeOfInstructionsprivate intmaxStackElementsprivate intmaxStorageprivate intmaxTwilightPointsprivate intmaxZonesprivate intnumGlyphsstatic java.lang.StringTAGA tag that identifies this table type.private floatversion-
Fields inherited from class org.apache.fontbox.ttf.TTFTable
initialized
-
-
Constructor Summary
Constructors Constructor Description MaximumProfileTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxComponentDepth()intgetMaxComponentElements()intgetMaxCompositeContours()intgetMaxCompositePoints()intgetMaxContours()intgetMaxFunctionDefs()intgetMaxInstructionDefs()intgetMaxPoints()intgetMaxSizeOfInstructions()intgetMaxStackElements()intgetMaxStorage()intgetMaxTwilightPoints()intgetMaxZones()intgetNumGlyphs()floatgetVersion()(package private) voidread(TrueTypeFont ttf, TTFDataStream data)This will read the required data from the stream.voidsetMaxComponentDepth(int maxComponentDepthValue)voidsetMaxComponentElements(int maxComponentElementsValue)voidsetMaxCompositeContours(int maxCompositeContoursValue)voidsetMaxCompositePoints(int maxCompositePointsValue)voidsetMaxContours(int maxContoursValue)voidsetMaxFunctionDefs(int maxFunctionDefsValue)voidsetMaxInstructionDefs(int maxInstructionDefsValue)voidsetMaxPoints(int maxPointsValue)voidsetMaxSizeOfInstructions(int maxSizeOfInstructionsValue)voidsetMaxStackElements(int maxStackElementsValue)voidsetMaxStorage(int maxStorageValue)voidsetMaxTwilightPoints(int maxTwilightPointsValue)voidsetMaxZones(int maxZonesValue)voidsetNumGlyphs(int numGlyphsValue)voidsetVersion(float versionValue)-
Methods inherited from class org.apache.fontbox.ttf.TTFTable
getCheckSum, getInitialized, getLength, getOffset, getTag, readHeaders, setCheckSum, setLength, setOffset, setTag
-
-
-
-
Field Detail
-
TAG
public static final java.lang.String TAG
A tag that identifies this table type.- See Also:
- Constant Field Values
-
version
private float version
-
numGlyphs
private int numGlyphs
-
maxPoints
private int maxPoints
-
maxContours
private int maxContours
-
maxCompositePoints
private int maxCompositePoints
-
maxCompositeContours
private int maxCompositeContours
-
maxZones
private int maxZones
-
maxTwilightPoints
private int maxTwilightPoints
-
maxStorage
private int maxStorage
-
maxFunctionDefs
private int maxFunctionDefs
-
maxInstructionDefs
private int maxInstructionDefs
-
maxStackElements
private int maxStackElements
-
maxSizeOfInstructions
private int maxSizeOfInstructions
-
maxComponentElements
private int maxComponentElements
-
maxComponentDepth
private int maxComponentDepth
-
-
Method Detail
-
getMaxComponentDepth
public int getMaxComponentDepth()
- Returns:
- Returns the maxComponentDepth.
-
setMaxComponentDepth
public void setMaxComponentDepth(int maxComponentDepthValue)
- Parameters:
maxComponentDepthValue- The maxComponentDepth to set.
-
getMaxComponentElements
public int getMaxComponentElements()
- Returns:
- Returns the maxComponentElements.
-
setMaxComponentElements
public void setMaxComponentElements(int maxComponentElementsValue)
- Parameters:
maxComponentElementsValue- The maxComponentElements to set.
-
getMaxCompositeContours
public int getMaxCompositeContours()
- Returns:
- Returns the maxCompositeContours.
-
setMaxCompositeContours
public void setMaxCompositeContours(int maxCompositeContoursValue)
- Parameters:
maxCompositeContoursValue- The maxCompositeContours to set.
-
getMaxCompositePoints
public int getMaxCompositePoints()
- Returns:
- Returns the maxCompositePoints.
-
setMaxCompositePoints
public void setMaxCompositePoints(int maxCompositePointsValue)
- Parameters:
maxCompositePointsValue- The maxCompositePoints to set.
-
getMaxContours
public int getMaxContours()
- Returns:
- Returns the maxContours.
-
setMaxContours
public void setMaxContours(int maxContoursValue)
- Parameters:
maxContoursValue- The maxContours to set.
-
getMaxFunctionDefs
public int getMaxFunctionDefs()
- Returns:
- Returns the maxFunctionDefs.
-
setMaxFunctionDefs
public void setMaxFunctionDefs(int maxFunctionDefsValue)
- Parameters:
maxFunctionDefsValue- The maxFunctionDefs to set.
-
getMaxInstructionDefs
public int getMaxInstructionDefs()
- Returns:
- Returns the maxInstructionDefs.
-
setMaxInstructionDefs
public void setMaxInstructionDefs(int maxInstructionDefsValue)
- Parameters:
maxInstructionDefsValue- The maxInstructionDefs to set.
-
getMaxPoints
public int getMaxPoints()
- Returns:
- Returns the maxPoints.
-
setMaxPoints
public void setMaxPoints(int maxPointsValue)
- Parameters:
maxPointsValue- The maxPoints to set.
-
getMaxSizeOfInstructions
public int getMaxSizeOfInstructions()
- Returns:
- Returns the maxSizeOfInstructions.
-
setMaxSizeOfInstructions
public void setMaxSizeOfInstructions(int maxSizeOfInstructionsValue)
- Parameters:
maxSizeOfInstructionsValue- The maxSizeOfInstructions to set.
-
getMaxStackElements
public int getMaxStackElements()
- Returns:
- Returns the maxStackElements.
-
setMaxStackElements
public void setMaxStackElements(int maxStackElementsValue)
- Parameters:
maxStackElementsValue- The maxStackElements to set.
-
getMaxStorage
public int getMaxStorage()
- Returns:
- Returns the maxStorage.
-
setMaxStorage
public void setMaxStorage(int maxStorageValue)
- Parameters:
maxStorageValue- The maxStorage to set.
-
getMaxTwilightPoints
public int getMaxTwilightPoints()
- Returns:
- Returns the maxTwilightPoints.
-
setMaxTwilightPoints
public void setMaxTwilightPoints(int maxTwilightPointsValue)
- Parameters:
maxTwilightPointsValue- The maxTwilightPoints to set.
-
getMaxZones
public int getMaxZones()
- Returns:
- Returns the maxZones.
-
setMaxZones
public void setMaxZones(int maxZonesValue)
- Parameters:
maxZonesValue- The maxZones to set.
-
getNumGlyphs
public int getNumGlyphs()
- Returns:
- Returns the numGlyphs.
-
setNumGlyphs
public void setNumGlyphs(int numGlyphsValue)
- Parameters:
numGlyphsValue- The numGlyphs to set.
-
getVersion
public float getVersion()
- Returns:
- Returns the version.
-
setVersion
public void setVersion(float versionValue)
- Parameters:
versionValue- The version to set.
-
read
void read(TrueTypeFont ttf, TTFDataStream data) throws java.io.IOException
This will read the required data from the stream.
-
-