Class FontManager

java.lang.Object
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 Details

    • 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.