Class FontManager

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

    • 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