org.apache.fontbox.ttf
Class CIDFontType2Parser

java.lang.Object
  extended by org.apache.fontbox.ttf.CIDFontType2Parser

public class CIDFontType2Parser
extends Object


Field Summary
protected  boolean isEmbedded
           
 
Constructor Summary
CIDFontType2Parser()
           
CIDFontType2Parser(boolean isEmbedded)
           
 
Method Summary
protected  void parseTables(TrueTypeFont font, TTFDataStream raf)
          Parse all tables and check if all needed tables are present.
 TrueTypeFont parseTTF(File ttfFile)
          Parse a file and get a true type font.
 TrueTypeFont parseTTF(InputStream ttfData)
          Parse a file and get a true type font.
 TrueTypeFont parseTTF(String ttfFile)
          Parse a file and get a true type font.
 TrueTypeFont parseTTF(TTFDataStream raf)
          Parse a file and get a true type font.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isEmbedded

protected boolean isEmbedded
Constructor Detail

CIDFontType2Parser

public CIDFontType2Parser()

CIDFontType2Parser

public CIDFontType2Parser(boolean isEmbedded)
Method Detail

parseTTF

public TrueTypeFont parseTTF(String ttfFile)
                      throws IOException
Parse a file and get a true type font.

Parameters:
ttfFile - The TTF file.
Returns:
A true type font.
Throws:
IOException - If there is an error parsing the true type font.

parseTTF

public TrueTypeFont parseTTF(File ttfFile)
                      throws IOException
Parse a file and get a true type font.

Parameters:
ttfFile - The TTF file.
Returns:
A true type font.
Throws:
IOException - If there is an error parsing the true type font.

parseTTF

public TrueTypeFont parseTTF(InputStream ttfData)
                      throws IOException
Parse a file and get a true type font.

Parameters:
ttfData - The TTF data to parse.
Returns:
A true type font.
Throws:
IOException - If there is an error parsing the true type font.

parseTTF

public TrueTypeFont parseTTF(TTFDataStream raf)
                      throws IOException
Parse a file and get a true type font.

Parameters:
raf - The TTF file.
Returns:
A true type font.
Throws:
IOException - If there is an error parsing the true type font.

parseTables

protected void parseTables(TrueTypeFont font,
                           TTFDataStream raf)
                    throws IOException
Parse all tables and check if all needed tables are present.

Parameters:
font - the TrueTypeFont instance holding the parsed data.
raf - the data stream of the to be parsed ttf font
Throws:
IOException - If there is an error parsing the true type font.


Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.