org.apache.pdfbox.pdmodel.font
Class FontManager

java.lang.Object
  extended by org.apache.pdfbox.pdmodel.font.FontManager

public class FontManager
extends Object

This class is used as font manager.

Version:
$Revision: 1.0 $
Author:
Andreas Lehmkühler

Method Summary
static Font getAwtFont(String font)
          Get the font for the given fontname.
static Font getStandardFont()
          Get the standard font from the environment, usually Arial or Times New Roman.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getStandardFont

public static Font getStandardFont()
Get the standard font from the environment, usually Arial or Times New Roman.

Returns:
The standard font

getAwtFont

public static Font getAwtFont(String font)
Get the font for the given fontname.

Parameters:
font - The name of the font.
Returns:
The font we are looking for or a similar font or null if nothing is found.


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