gestalt.extension.font
Class TTXParser

java.lang.Object
  extended by gestalt.extension.font.TTXParser

public class TTXParser
extends java.lang.Object


Constructor Summary
TTXParser()
           
 
Method Summary
 int[] getCharacterWidthMap()
          Returns a map storing the character advances (simply widths).
 int getFUnitsPerEm()
          Returns the number of fUnits per em, usually 2048 in truetype and 1000 in postscript fonts.
 int[][] getKerningTable()
          Returns a table containing the kerning values of character pairs.
 void read(java.io.InputStream theFilename)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TTXParser

public TTXParser()
Method Detail

read

public void read(java.io.InputStream theFilename)

getFUnitsPerEm

public int getFUnitsPerEm()
Returns the number of fUnits per em, usually 2048 in truetype and 1000 in postscript fonts.

Returns:
int

getCharacterWidthMap

public int[] getCharacterWidthMap()
Returns a map storing the character advances (simply widths).

Returns:
int[]

getKerningTable

public int[][] getKerningTable()
Returns a table containing the kerning values of character pairs.

Returns:
int[][]


processing library gestalt_p5 by Patrick Kochlik + Dennis Paul. (c) 2009