Home » pdfbox-1.1.0-src » org.apache.fontbox.ttf » [javadoc | source]
org.apache.fontbox.ttf
public class: TrueTypeFont [javadoc | source]
java.lang.Object
   org.apache.fontbox.ttf.TrueTypeFont
A class to hold true type font information.
Constructor:
 TrueTypeFont(TTFDataStream fontData) 
    Constructor. Clients should use the TTFParser to create a new TrueTypeFont object.
    Parameters:
    fontData - The font data.
Method from org.apache.fontbox.ttf.TrueTypeFont Summary:
addTable,   close,   getCMAP,   getGlyph,   getHeader,   getHorizontalHeader,   getHorizontalMetrics,   getIndexToLocation,   getMaximumProfile,   getNaming,   getOS2Windows,   getOriginalData,   getPostScript,   getTables,   getVersion,   setVersion
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.fontbox.ttf.TrueTypeFont Detail:
 public  void addTable(TTFTable table) 
    Add a table definition.
 public  void close() throws IOException 
    Close the underlying resources.
 public CMAPTable getCMAP() 
    Get the cmap table for this TTF.
 public GlyphTable getGlyph() 
    Get the glyf table for this TTF.
 public HeaderTable getHeader() 
    Get the head table for this TTF.
 public HorizontalHeaderTable getHorizontalHeader() 
    Get the hhea table for this TTF.
 public HorizontalMetricsTable getHorizontalMetrics() 
    Get the hmtx table for this TTF.
 public IndexToLocationTable getIndexToLocation() 
    Get the loca table for this TTF.
 public MaximumProfileTable getMaximumProfile() 
    Get the maxp table for this TTF.
 public NamingTable getNaming() 
    This will get the naming table for the true type font.
 public OS2WindowsMetricsTable getOS2Windows() 
    Get the OS/2 table for this TTF.
 public InputStream getOriginalData() throws IOException 
    This permit to get the data of the True Type Font program representing the stream used to build this object (normally from the TTFParser object).
 public PostScriptTable getPostScript() 
    Get the postscript table for this TTF.
 public Collection<TTFTable> getTables() 
    Get all of the tables.
 public float getVersion() 
 public  void setVersion(float versionValue)