Class FontShorthandResolver
java.lang.Object
com.itextpdf.styledxmlparser.css.resolve.shorthand.impl.FontShorthandResolver
- All Implemented Interfaces:
IShorthandResolver
IShorthandResolver
implementation for fonts.-
Field Summary
FieldsModifier and TypeFieldDescriptionFont size values.Font weight values.Unsupported shorthand values. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFontProperties
(String shorthandExpression) Gets the font properties.resolveShorthand
(String shorthandExpression) Resolves a shorthand expression.
-
Field Details
-
UNSUPPORTED_VALUES_OF_FONT_SHORTHAND
Unsupported shorthand values. -
FONT_WEIGHT_NOT_DEFAULT_VALUES
Font weight values. -
FONT_SIZE_VALUES
Font size values.
-
-
Constructor Details
-
FontShorthandResolver
public FontShorthandResolver()
-
-
Method Details
-
resolveShorthand
Description copied from interface:IShorthandResolver
Resolves a shorthand expression.- Specified by:
resolveShorthand
in interfaceIShorthandResolver
- Parameters:
shorthandExpression
- the shorthand expression- Returns:
- a list of CSS declaration
-
getFontProperties
Gets the font properties.- Parameters:
shorthandExpression
- the shorthand expression- Returns:
- the font properties
-