Top Description Fields Constructors Methods
org.apache.fontbox.ttf

public Class PostScriptTable

extends TTFTable
Class Inheritance
Imports
java.io.IOException, org.apache.commons.logging.Log, .LogFactory

This 'post'-table is a required table in a TrueType-font.
Author
Ben Litchfield

Field Summary

Modifier and TypeField and Description
private float
private String[]
private long
private float
private static final Log
private long
private long
private long
private long
public static final String
TAG

A tag that identifies this table type.

private short
private short
Inherited from org.apache.fontbox.ttf.TTFTable:
initialized

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public float

Returns:

Returns the formatType.
getFormatType
()

public String[]

Returns:

Returns the glyphNames.
getGlyphNames
()

public long

Returns:

Returns the isFixedPitch.
getIsFixedPitch
()

public float

Returns:

Returns the italicAngle.
getItalicAngle
()

public long

Returns:

Returns the maxMemType1.
getMaxMemType1
()

public long

Returns:

Returns the maxMemType42.
getMaxMemType42
()

public long

Returns:

Returns the mimMemType1.
getMinMemType1
()

public long

Returns:

Returns the minMemType42.
getMinMemType42
()

public String

Returns:

the glyph name for the given glyph name or null
getName
(int
the GID of the glyph name
gid
)

Returns the glyph name of the given GID.

public short

Returns:

Returns the underlinePosition.
getUnderlinePosition
()

public short

Returns:

Returns the underlineThickness.
getUnderlineThickness
()

pack-priv void
read(TrueTypeFont
The font that is being read.
ttf
,
TTFDataStream
The stream to read the data from.
data
)

Overrides org.apache.fontbox.ttf.TTFTable.read.

This will read the required data from the stream.

public void
setFormatType(float
The formatType to set.
formatTypeValue
)

public void
setGlyphNames(String[]
The glyphNames to set.
glyphNamesValue
)

public void
setIsFixedPitch(long
The isFixedPitch to set.
isFixedPitchValue
)

public void
setItalicAngle(float
The italicAngle to set.
italicAngleValue
)

public void
setMaxMemType1(long
The maxMemType1 to set.
maxMemType1Value
)

public void
setMaxMemType42(long
The maxMemType42 to set.
maxMemType42Value
)

public void
setMimMemType1(long
The mimMemType1 to set.
mimMemType1Value
)

public void
setMinMemType42(long
The minMemType42 to set.
minMemType42Value
)

public void
setUnderlinePosition(short
The underlinePosition to set.
underlinePositionValue
)

public void
setUnderlineThickness(short
The underlineThickness to set.
underlineThicknessValue
)

Inherited from org.apache.fontbox.ttf.TTFTable:
getCheckSumgetInitializedgetLengthgetOffsetgetTagreadHeaderssetCheckSumsetLengthsetOffsetsetTag

Field Detail

formatTypeback to summary
private float formatType
glyphNamesback to summary
private String[] glyphNames
isFixedPitchback to summary
private long isFixedPitch
italicAngleback to summary
private float italicAngle
LOGback to summary
private static final Log LOG
maxMemType1back to summary
private long maxMemType1
maxMemType42back to summary
private long maxMemType42
mimMemType1back to summary
private long mimMemType1
minMemType42back to summary
private long minMemType42
TAGback to summary
public static final String TAG

A tag that identifies this table type.

underlinePositionback to summary
private short underlinePosition
underlineThicknessback to summary
private short underlineThickness

Constructor Detail

PostScriptTableback to summary
pack-priv PostScriptTable()

Method Detail

getFormatTypeback to summary
public float getFormatType()
Returns:float

Returns the formatType.

getGlyphNamesback to summary
public String[] getGlyphNames()
Returns:String[]

Returns the glyphNames.

getIsFixedPitchback to summary
public long getIsFixedPitch()
Returns:long

Returns the isFixedPitch.

getItalicAngleback to summary
public float getItalicAngle()
Returns:float

Returns the italicAngle.

getMaxMemType1back to summary
public long getMaxMemType1()
Returns:long

Returns the maxMemType1.

getMaxMemType42back to summary
public long getMaxMemType42()
Returns:long

Returns the maxMemType42.

getMinMemType1back to summary
public long getMinMemType1()
Returns:long

Returns the mimMemType1.

getMinMemType42back to summary
public long getMinMemType42()
Returns:long

Returns the minMemType42.

getNameback to summary
public String getName(int gid)

Returns the glyph name of the given GID.

Parameters
gid:int

the GID of the glyph name

Returns:String

the glyph name for the given glyph name or null

getUnderlinePositionback to summary
public short getUnderlinePosition()
Returns:short

Returns the underlinePosition.

getUnderlineThicknessback to summary
public short getUnderlineThickness()
Returns:short

Returns the underlineThickness.

readback to summary
pack-priv void read(TrueTypeFont ttf, TTFDataStream data) throws IOException

Overrides org.apache.fontbox.ttf.TTFTable.read.

This will read the required data from the stream.

Parameters
ttf:TrueTypeFont

The font that is being read.

data:TTFDataStream

The stream to read the data from.

Annotations
@Override
Exceptions
IOException:
If there is an error reading the data.
setFormatTypeback to summary
public void setFormatType(float formatTypeValue)
Parameters
formatTypeValue:float

The formatType to set.

setGlyphNamesback to summary
public void setGlyphNames(String[] glyphNamesValue)
Parameters
glyphNamesValue:String[]

The glyphNames to set.

setIsFixedPitchback to summary
public void setIsFixedPitch(long isFixedPitchValue)
Parameters
isFixedPitchValue:long

The isFixedPitch to set.

setItalicAngleback to summary
public void setItalicAngle(float italicAngleValue)
Parameters
italicAngleValue:float

The italicAngle to set.

setMaxMemType1back to summary
public void setMaxMemType1(long maxMemType1Value)
Parameters
maxMemType1Value:long

The maxMemType1 to set.

setMaxMemType42back to summary
public void setMaxMemType42(long maxMemType42Value)
Parameters
maxMemType42Value:long

The maxMemType42 to set.

setMimMemType1back to summary
public void setMimMemType1(long mimMemType1Value)
Parameters
mimMemType1Value:long

The mimMemType1 to set.

setMinMemType42back to summary
public void setMinMemType42(long minMemType42Value)
Parameters
minMemType42Value:long

The minMemType42 to set.

setUnderlinePositionback to summary
public void setUnderlinePosition(short underlinePositionValue)
Parameters
underlinePositionValue:short

The underlinePosition to set.

setUnderlineThicknessback to summary
public void setUnderlineThickness(short underlineThicknessValue)
Parameters
underlineThicknessValue:short

The underlineThickness to set.