org.apache.fontbox.util
Class FontManager

java.lang.Object
  extended by org.apache.fontbox.util.FontManager

public class FontManager
extends Object

This class is used as manager for local fonts. It's based on the font manager provided by Apache FOP. see org.apache.fop.fonts.FontManager.java


Method Summary
static TrueTypeFont findTTFont(String fontname)
          Search for a true type font for the given font name.
static String findTTFontname(String fontname)
          Search for a font for the given font name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findTTFontname

public static String findTTFontname(String fontname)
Search for a font for the given font name.

Parameters:
fontname - the given font name
Returns:
the name of the mapped font

findTTFont

public static TrueTypeFont findTTFont(String fontname)
                               throws IOException
Search for a true type font for the given font name.

Parameters:
fontname - the given font name
Returns:
the mapped true type font
Throws:
IOException - if something went wrong


Copyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.