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
A table in a true type font.
-
-
Field Summary
Fields Modifier and Type Field Description private int
maxComponentDepth
private int
maxComponentElements
private int
maxCompositeContours
private int
maxCompositePoints
private int
maxContours
private int
maxFunctionDefs
private int
maxInstructionDefs
private int
maxPoints
private int
maxSizeOfInstructions
private int
maxStackElements
private int
maxStorage
private int
maxTwilightPoints
private int
maxZones
private int
numGlyphs
static java.lang.String
TAG
A tag that identifies this table type.private float
version
-
Fields inherited from class org.apache.fontbox.ttf.TTFTable
font, initialized
-
-
Constructor Summary
Constructors Constructor Description MaximumProfileTable(TrueTypeFont font)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMaxComponentDepth()
int
getMaxComponentElements()
int
getMaxCompositeContours()
int
getMaxCompositePoints()
int
getMaxContours()
int
getMaxFunctionDefs()
int
getMaxInstructionDefs()
int
getMaxPoints()
int
getMaxSizeOfInstructions()
int
getMaxStackElements()
int
getMaxStorage()
int
getMaxTwilightPoints()
int
getMaxZones()
int
getNumGlyphs()
float
getVersion()
(package private) void
read(TrueTypeFont ttf, TTFDataStream data)
This will read the required data from the stream.void
setMaxComponentDepth(int maxComponentDepthValue)
void
setMaxComponentElements(int maxComponentElementsValue)
void
setMaxCompositeContours(int maxCompositeContoursValue)
void
setMaxCompositePoints(int maxCompositePointsValue)
void
setMaxContours(int maxContoursValue)
void
setMaxFunctionDefs(int maxFunctionDefsValue)
void
setMaxInstructionDefs(int maxInstructionDefsValue)
void
setMaxPoints(int maxPointsValue)
void
setMaxSizeOfInstructions(int maxSizeOfInstructionsValue)
void
setMaxStackElements(int maxStackElementsValue)
void
setMaxStorage(int maxStorageValue)
void
setMaxTwilightPoints(int maxTwilightPointsValue)
void
setMaxZones(int maxZonesValue)
void
setNumGlyphs(int numGlyphsValue)
void
setVersion(float versionValue)
-
Methods inherited from class org.apache.fontbox.ttf.TTFTable
getCheckSum, getInitialized, getLength, getOffset, getTag, 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
-
-
Constructor Detail
-
MaximumProfileTable
MaximumProfileTable(TrueTypeFont font)
-
-
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.
-
-