Class SvgFontProcessor


  • public class SvgFontProcessor
    extends java.lang.Object
    Class that processes and add resolved css fonts to the FontProvider
    • Method Detail

      • addFontFaceFonts

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

        private boolean createFont​(java.lang.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