Class ITextFontResolver

java.lang.Object
org.xhtmlrenderer.pdf.ITextFontResolver
All Implemented Interfaces:
FontResolver

public class ITextFontResolver extends Object implements FontResolver
  • Constructor Details

    • ITextFontResolver

      public ITextFontResolver(SharedContext sharedContext)
  • Method Details

    • resolveFont

      public FSFont resolveFont(SharedContext renderingContext, FontSpecification spec)
      Specified by:
      resolveFont in interface FontResolver
    • flushCache

      public void flushCache()
      Specified by:
      flushCache in interface FontResolver
    • flushFontFaceFonts

      public void flushFontFaceFonts()
    • importFontFaces

      public void importFontFaces(List fontFaces)
    • addFontDirectory

      public void addFontDirectory(String dir, boolean embedded) throws com.lowagie.text.DocumentException, IOException
      Throws:
      com.lowagie.text.DocumentException
      IOException
    • addFont

      public void addFont(String path, boolean embedded) throws com.lowagie.text.DocumentException, IOException
      Throws:
      com.lowagie.text.DocumentException
      IOException
    • addFont

      public void addFont(String path, String encoding, boolean embedded) throws com.lowagie.text.DocumentException, IOException
      Throws:
      com.lowagie.text.DocumentException
      IOException
    • addFont

      public void addFont(String path, String encoding, boolean embedded, String pathToPFB) throws com.lowagie.text.DocumentException, IOException
      Throws:
      com.lowagie.text.DocumentException
      IOException
    • getFontFamily

      public org.xhtmlrenderer.pdf.ITextFontResolver.FontFamily getFontFamily(String fontFamilyName)