pdfHTML 2.1.6 API
iText.Html2pdf.Css.Apply.Util.FontStyleApplierUtil Class Reference

Utilities class to apply font styles. More...

Static Public Member Functions

static void  ApplyFontStyles (IDictionary< String, String > cssProps, ProcessorContext context, IStylesContainer stylesContainer, IPropertyContainer element)
  Applies font styles to an element. More...
 
static float  ParseAbsoluteFontSize (String fontSizeValue)
  Parses the absolute font size. More...
 
static float  ParseRelativeFontSize (String relativeFontSizeValue, float baseValue)
  Parses the relative font size. More...
 

Detailed Description

Utilities class to apply font styles.

Member Function Documentation

◆ ApplyFontStyles()

static void iText.Html2pdf.Css.Apply.Util.FontStyleApplierUtil.ApplyFontStyles ( IDictionary< String, String >  cssProps,
ProcessorContext  context,
IStylesContainer  stylesContainer,
IPropertyContainer  element 
)
inlinestatic

Applies font styles to an element.

Parameters
cssProps the CSS props
context the processor context
stylesContainer the styles container
element the element

◆ ParseAbsoluteFontSize()

static float iText.Html2pdf.Css.Apply.Util.FontStyleApplierUtil.ParseAbsoluteFontSize ( String  fontSizeValue )
inlinestatic

Parses the absolute font size.

Parameters
fontSizeValue the font size value as a System.String
Returns
the font size value as a float

◆ ParseRelativeFontSize()

static float iText.Html2pdf.Css.Apply.Util.FontStyleApplierUtil.ParseRelativeFontSize ( String  relativeFontSizeValue,
float  baseValue 
)
inlinestatic

Parses the relative font size.

Parameters
relativeFontSizeValue the relative font size value as a System.String
baseValue the base value
Returns
the relative font size value as a float