Class FopConfigUtil

java.lang.Object
org.docx4j.fonts.fop.util.FopConfigUtil

public class FopConfigUtil
extends java.lang.Object
The sole role of this class is to create a configuration which can be used to configure FOP. As of 8.3.3, we have a JAXB representation of the FOP XML config.
Author:
jharrop
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected static org.slf4j.Logger log  
  • Constructor Summary

    Constructors
    Constructor Description
    FopConfigUtil()  
  • Method Summary

    Modifier and Type Method Description
    protected static void addFontTriplet​(java.lang.StringBuilder result, java.lang.String familyName, java.lang.String style, java.lang.String weight)  
    static Fop createConfigurationObject​(Mapper fontMapper, java.util.Set<java.lang.String> fontsInUse)  
    protected static Fonts declareRendererFonts​(Mapper fontMapper, java.util.Set<java.lang.String> fontsInUse)
    Create a FOP font configuration for each font used in the document.
    protected static java.lang.String weightToCSS2FontWeight​(int i)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • log

      protected static org.slf4j.Logger log
  • Constructor Details

    • FopConfigUtil

      public FopConfigUtil()
  • Method Details

    • createConfigurationObject

      public static Fop createConfigurationObject​(Mapper fontMapper, java.util.Set<java.lang.String> fontsInUse) throws Docx4JException
      Throws:
      Docx4JException
    • declareRendererFonts

      protected static Fonts declareRendererFonts​(Mapper fontMapper, java.util.Set<java.lang.String> fontsInUse)
      Create a FOP font configuration for each font used in the document.
      Returns:
    • addFontTriplet

      protected static void addFontTriplet​(java.lang.StringBuilder result, java.lang.String familyName, java.lang.String style, java.lang.String weight)
    • weightToCSS2FontWeight

      protected static java.lang.String weightToCSS2FontWeight​(int i)