Package com.sun.pdfview.font.ttf
Class PostTable
- java.lang.Object
-
- com.sun.pdfview.font.ttf.TrueTypeTable
-
- com.sun.pdfview.font.ttf.PostTable
-
public class PostTable extends TrueTypeTable
Model the TrueType Post table
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
PostTable.PostMap
An empty post map(package private) class
PostTable.PostMapFormat0
A Format 0 post map(package private) class
PostTable.PostMapFormat2
an extension to handle format 2 post maps
-
Field Summary
Fields Modifier and Type Field Description private int
format
Holds value of property format.private short
isFixedPitch
Holds value of property isFixedPitch.private int
italicAngle
Holds value of property italicAngle.private int
maxMemType1
Holds value of property maxMemType1.private int
maxMemType42
Holds value of property maxMemType42.private int
minMemType1
Holds value of property minMemType1.private int
minMemType42
Holds value of property minMemType42.private PostTable.PostMap
nameMap
A map which character values to names and vice versaprivate short
underlinePosition
Holds value of property underlinePosition.private short
underlineThickness
Holds value of property underlineThickness.-
Fields inherited from class com.sun.pdfview.font.ttf.TrueTypeTable
CMAP_TABLE, GLYF_TABLE, HEAD_TABLE, HHEA_TABLE, HMTX_TABLE, LOCA_TABLE, MAXP_TABLE, NAME_TABLE, POST_TABLE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PostTable()
Creates a new instance of PostTable
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffer
getData()
get the data in this map as a ByteBufferint
getFormat()
Getter for property format.java.lang.String
getGlyphName(char c)
Map a character code to a glyphIndex nameshort
getGlyphNameIndex(java.lang.String name)
Map a character name to a glyphNameIndexshort
getIsFixedPitch()
Getter for property isFixedPitch.int
getItalicAngle()
Getter for property italicAngle.int
getLength()
Get the length of this tableint
getMaxMemType1()
Getter for property maxMemType1.int
getMaxMemType42()
Getter for property maxMemType42.int
getMinMemType1()
Getter for property minMemType1.int
getMinMemType42()
Getter for property minMemType42.short
getUnderlinePosition()
Getter for property underlinePosition.short
getUnderlineThickness()
Getter for property underlineThickness.void
setData(java.nio.ByteBuffer data)
Initialize this structure from a ByteBuffervoid
setFormat(int format)
Setter for property format.void
setIsFixedPitch(short isFixedPitch)
Setter for property isFixedPitch.void
setItalicAngle(int italicAngle)
Setter for property italicAngle.void
setMaxMemType1(int maxMemType1)
Setter for property maxMemType1.void
setMaxMemType42(int maxMemType42)
Setter for property maxMemType42.void
setMinMemType1(int minMemType1)
Setter for property minMemType1.void
setMinMemType42(int minMemType42)
Setter for property minMemType42.void
setUnderlinePosition(short underlinePosition)
Setter for property underlinePosition.void
setUnderlineThickness(short underlineThickness)
Setter for property underlineThickness.-
Methods inherited from class com.sun.pdfview.font.ttf.TrueTypeTable
createTable, createTable, getTag, stringToTag, tagToString, toString
-
-
-
-
Field Detail
-
format
private int format
Holds value of property format.
-
italicAngle
private int italicAngle
Holds value of property italicAngle.
-
underlinePosition
private short underlinePosition
Holds value of property underlinePosition.
-
underlineThickness
private short underlineThickness
Holds value of property underlineThickness.
-
isFixedPitch
private short isFixedPitch
Holds value of property isFixedPitch.
-
minMemType42
private int minMemType42
Holds value of property minMemType42.
-
maxMemType42
private int maxMemType42
Holds value of property maxMemType42.
-
minMemType1
private int minMemType1
Holds value of property minMemType1.
-
maxMemType1
private int maxMemType1
Holds value of property maxMemType1.
-
nameMap
private PostTable.PostMap nameMap
A map which character values to names and vice versa
-
-
Method Detail
-
getGlyphNameIndex
public short getGlyphNameIndex(java.lang.String name)
Map a character name to a glyphNameIndex
-
getGlyphName
public java.lang.String getGlyphName(char c)
Map a character code to a glyphIndex name
-
getData
public java.nio.ByteBuffer getData()
get the data in this map as a ByteBuffer- Overrides:
getData
in classTrueTypeTable
-
setData
public void setData(java.nio.ByteBuffer data)
Initialize this structure from a ByteBuffer- Overrides:
setData
in classTrueTypeTable
-
getLength
public int getLength()
Get the length of this table- Overrides:
getLength
in classTrueTypeTable
-
getFormat
public int getFormat()
Getter for property format.- Returns:
- Value of property format.
-
setFormat
public void setFormat(int format)
Setter for property format.- Parameters:
format
- New value of property format.
-
getItalicAngle
public int getItalicAngle()
Getter for property italicAngle.- Returns:
- Value of property italicAngle.
-
setItalicAngle
public void setItalicAngle(int italicAngle)
Setter for property italicAngle.- Parameters:
italicAngle
- New value of property italicAngle.
-
getUnderlinePosition
public short getUnderlinePosition()
Getter for property underlinePosition.- Returns:
- Value of property underlinePosition.
-
setUnderlinePosition
public void setUnderlinePosition(short underlinePosition)
Setter for property underlinePosition.- Parameters:
underlinePosition
- New value of property underlinePosition.
-
getUnderlineThickness
public short getUnderlineThickness()
Getter for property underlineThickness.- Returns:
- Value of property underlineThickness.
-
setUnderlineThickness
public void setUnderlineThickness(short underlineThickness)
Setter for property underlineThickness.- Parameters:
underlineThickness
- New value of property underlineThickness.
-
getIsFixedPitch
public short getIsFixedPitch()
Getter for property isFixedPitch.- Returns:
- Value of property isFixedPitch.
-
setIsFixedPitch
public void setIsFixedPitch(short isFixedPitch)
Setter for property isFixedPitch.- Parameters:
isFixedPitch
- New value of property isFixedPitch.
-
getMinMemType42
public int getMinMemType42()
Getter for property minMemType42.- Returns:
- Value of property minMemType42.
-
setMinMemType42
public void setMinMemType42(int minMemType42)
Setter for property minMemType42.- Parameters:
minMemType42
- New value of property minMemType42.
-
getMaxMemType42
public int getMaxMemType42()
Getter for property maxMemType42.- Returns:
- Value of property maxMemType42.
-
setMaxMemType42
public void setMaxMemType42(int maxMemType42)
Setter for property maxMemType42.- Parameters:
maxMemType42
- New value of property maxMemType42.
-
getMinMemType1
public int getMinMemType1()
Getter for property minMemType1.- Returns:
- Value of property minMemType1.
-
setMinMemType1
public void setMinMemType1(int minMemType1)
Setter for property minMemType1.- Parameters:
minMemType1
- New value of property minMemType1.
-
getMaxMemType1
public int getMaxMemType1()
Getter for property maxMemType1.- Returns:
- Value of property maxMemType1.
-
setMaxMemType1
public void setMaxMemType1(int maxMemType1)
Setter for property maxMemType1.- Parameters:
maxMemType1
- New value of property maxMemType1.
-
-