Class FontSetup


  • public final class FontSetup
    extends java.lang.Object
    Default fonts for FOP application; currently this uses PDF's fonts by default. Assigns the font (with metrics) to internal names like "F1" and assigns family-style-weight triplets to the fonts
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private FontSetup()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static void addConfiguredFonts​(FontInfo fontInfo, java.util.List<EmbedFontInfo> embedFontInfoList, int num, InternalResourceResolver resourceResolver, boolean base14Kerning)
      Add fonts from configuration file starting with internal name F.
      static void setup​(FontInfo fontInfo, boolean base14Kerning)
      Sets up a font info
      static void setup​(FontInfo fontInfo, java.util.List embedFontInfoList, InternalResourceResolver resourceResolver, boolean base14Kerning)
      Sets up the font info object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FontSetup

        private FontSetup()
    • Method Detail

      • setup

        public static void setup​(FontInfo fontInfo,
                                 boolean base14Kerning)
        Sets up a font info
        Parameters:
        fontInfo - font info
        base14Kerning - true if base14 kerning applies
      • setup

        public static void setup​(FontInfo fontInfo,
                                 java.util.List embedFontInfoList,
                                 InternalResourceResolver resourceResolver,
                                 boolean base14Kerning)
        Sets up the font info object. Adds metrics for basic fonts and useful family-style-weight triplets for lookup.
        Parameters:
        fontInfo - the font info object to set up
        embedFontInfoList - a list of EmbedFontInfo objects
        resourceResolver - the font resolver
        base14Kerning - true if base14 kerning applies
      • addConfiguredFonts

        private static void addConfiguredFonts​(FontInfo fontInfo,
                                               java.util.List<EmbedFontInfo> embedFontInfoList,
                                               int num,
                                               InternalResourceResolver resourceResolver,
                                               boolean base14Kerning)
        Add fonts from configuration file starting with internal name F.
        Parameters:
        fontInfo - the font info to set up
        embedFontInfoList - a list of EmbedFontInfo objects
        num - starting index for internal font numbering
        resourceResolver - the font resolver