Class SvgFontProcessor
java.lang.Object
com.itextpdf.svg.processors.impl.font.SvgFontProcessor
Class that processes and add resolved css fonts to the FontProvider
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSvgFontProcessor(SvgProcessorContext context) Creates newSvgFontProcessorinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFontFaceFonts(ICssResolver cssResolver) Adds @font-face fonts to the FontProvider.private booleancreateFont(String fontFamily, CssFontFace.CssFontFaceSrc src, Range unicodeRange) Creates a font and adds it to the context.
-
Field Details
-
context
-
-
Constructor Details
-
SvgFontProcessor
Creates newSvgFontProcessorinstance.- Parameters:
context-SvgProcessorContextto add resolved fonts to
-
-
Method Details
-
addFontFaceFonts
Adds @font-face fonts to the FontProvider.- Parameters:
cssResolver- the css styles resolver
-
createFont
Creates a font and adds it to the context.- Parameters:
fontFamily- the font familysrc- the source of the font- Returns:
- true, if successful
-