public final class FontStyleApplierUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
applyFontStyles(Map<String,String> cssProps,
ProcessorContext context,
com.itextpdf.styledxmlparser.node.IStylesContainer stylesContainer,
com.itextpdf.layout.IPropertyContainer element)
Applies font styles to an element.
|
static float |
parseAbsoluteFontSize(String fontSizeValue)
Parses the absolute font size.
|
static float |
parseRelativeFontSize(String relativeFontSizeValue,
float baseValue)
Parses the relative font size.
|
public static void applyFontStyles(Map<String,String> cssProps, ProcessorContext context, com.itextpdf.styledxmlparser.node.IStylesContainer stylesContainer, com.itextpdf.layout.IPropertyContainer element)
cssProps - the CSS propscontext - the processor contextstylesContainer - the styles containerelement - the elementpublic static float parseAbsoluteFontSize(String fontSizeValue)
fontSizeValue - the font size value as a StringfloatCopyright © 1998–2019 iText Group NV. All rights reserved.