Class SvgFontProcessor

java.lang.Object
com.itextpdf.svg.processors.impl.font.SvgFontProcessor

public class SvgFontProcessor extends Object
Class that processes and add resolved css fonts to the FontProvider
  • Field Details

  • Constructor Details

  • Method Details

    • addFontFaceFonts

      public void addFontFaceFonts(ICssResolver cssResolver)
      Adds @font-face fonts to the FontProvider.
      Parameters:
      cssResolver - the css styles resolver
    • createFont

      private boolean createFont(String fontFamily, CssFontFace.CssFontFaceSrc src, Range unicodeRange)
      Creates a font and adds it to the context.
      Parameters:
      fontFamily - the font family
      src - the source of the font
      Returns:
      true, if successful