public final class FontStyleApplierUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
applyFontStyles(Map<String,String> cssProps, ProcessorContext context, 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, IStylesContainer stylesContainer, com.itextpdf.layout.IPropertyContainer element)
cssProps
- the CSS props
context
- the processor context
stylesContainer
- the styles container
element
- the element
public static float parseAbsoluteFontSize(String fontSizeValue)
fontSizeValue
- the font size value as a String
float
Copyright © 1998–2019 iText Group NV. All rights reserved.