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)
Deprecated.
Use
CssUtils.parseAbsoluteFontSize(String) instead.
|
static float |
parseRelativeFontSize(String relativeFontSizeValue, float baseValue)
Deprecated.
Use
CssUtils.parseRelativeFontSize(String, float) instead.
|
public static void applyFontStyles(Map<String,String> cssProps, ProcessorContext context, com.itextpdf.styledxmlparser.node.IStylesContainer stylesContainer, com.itextpdf.layout.IPropertyContainer element)
cssProps
- the CSS props
context
- the processor context
stylesContainer
- the styles container
element
- the element
@Deprecated public static float parseAbsoluteFontSize(String fontSizeValue)
CssUtils.parseAbsoluteFontSize(String)
instead.
fontSizeValue
- the font size value as a String
float
@Deprecated public static float parseRelativeFontSize(String relativeFontSizeValue, float baseValue)
CssUtils.parseRelativeFontSize(String, float)
instead.
relativeFontSizeValue
- the relative font size value as a String
baseValue
- the base value
float
Copyright © 1998–2020 iText Group NV. All rights reserved.