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) classPostTable.PostMapAn empty post map(package private) classPostTable.PostMapFormat0A Format 0 post map(package private) classPostTable.PostMapFormat2an extension to handle format 2 post maps
-
Field Summary
Fields Modifier and Type Field Description private intformatHolds value of property format.private shortisFixedPitchHolds value of property isFixedPitch.private intitalicAngleHolds value of property italicAngle.private intmaxMemType1Holds value of property maxMemType1.private intmaxMemType42Holds value of property maxMemType42.private intminMemType1Holds value of property minMemType1.private intminMemType42Holds value of property minMemType42.private PostTable.PostMapnameMapA map which character values to names and vice versaprivate shortunderlinePositionHolds value of property underlinePosition.private shortunderlineThicknessHolds 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 protectedPostTable()Creates a new instance of PostTable
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffergetData()get the data in this map as a ByteBufferintgetFormat()Getter for property format.java.lang.StringgetGlyphName(char c)Map a character code to a glyphIndex nameshortgetGlyphNameIndex(java.lang.String name)Map a character name to a glyphNameIndexshortgetIsFixedPitch()Getter for property isFixedPitch.intgetItalicAngle()Getter for property italicAngle.intgetLength()Get the length of this tableintgetMaxMemType1()Getter for property maxMemType1.intgetMaxMemType42()Getter for property maxMemType42.intgetMinMemType1()Getter for property minMemType1.intgetMinMemType42()Getter for property minMemType42.shortgetUnderlinePosition()Getter for property underlinePosition.shortgetUnderlineThickness()Getter for property underlineThickness.voidsetData(java.nio.ByteBuffer data)Initialize this structure from a ByteBuffervoidsetFormat(int format)Setter for property format.voidsetIsFixedPitch(short isFixedPitch)Setter for property isFixedPitch.voidsetItalicAngle(int italicAngle)Setter for property italicAngle.voidsetMaxMemType1(int maxMemType1)Setter for property maxMemType1.voidsetMaxMemType42(int maxMemType42)Setter for property maxMemType42.voidsetMinMemType1(int minMemType1)Setter for property minMemType1.voidsetMinMemType42(int minMemType42)Setter for property minMemType42.voidsetUnderlinePosition(short underlinePosition)Setter for property underlinePosition.voidsetUnderlineThickness(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:
getDatain classTrueTypeTable
-
setData
public void setData(java.nio.ByteBuffer data)
Initialize this structure from a ByteBuffer- Overrides:
setDatain classTrueTypeTable
-
getLength
public int getLength()
Get the length of this table- Overrides:
getLengthin 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.
-
-