org.freehep.graphicsio.font.truetype
Class TTFFont

java.lang.Object
  extended by org.freehep.graphicsio.font.truetype.TTFFont
Direct Known Subclasses:
TTFFile, TTFOpenType

public abstract class TTFFont
extends java.lang.Object

TrueType Font with all its tables.

Version:
$Id: TTFFont.java 8584 2006-08-10 23:06:37Z duns $
Author:
Simon Fischer

Constructor Summary
TTFFont()
           
 
Method Summary
 void close()
           
abstract  int getFontVersion()
           
 TTFTable getTable(java.lang.String tag)
          Returns the table with the given tag and reads it if necessary.
 void readAll()
          Reads all tables.
 void show()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TTFFont

public TTFFont()
Method Detail

getFontVersion

public abstract int getFontVersion()

show

public void show()

getTable

public TTFTable getTable(java.lang.String tag)
                  throws java.io.IOException
Returns the table with the given tag and reads it if necessary.

Throws:
java.io.IOException

readAll

public void readAll()
             throws java.io.IOException
Reads all tables. This method does not need to be called since the tables are read on demand (getTable(). It might be useful to call it in order to print out all available information.

Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2000-2007 FreeHEP. All Rights Reserved.