Class FontManager


  • public class FontManager
    extends java.lang.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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static TrueTypeFont findTTFont​(java.lang.String fontname)
      Search for a true type font for the given font name.
      static java.lang.String findTTFontname​(java.lang.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 java.lang.String findTTFontname​(java.lang.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​(java.lang.String fontname)
                                       throws java.io.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:
        java.io.IOException - if something went wrong