Class FontShorthandResolver
- java.lang.Object
-
- com.itextpdf.styledxmlparser.css.resolve.shorthand.impl.FontShorthandResolver
-
- All Implemented Interfaces:
IShorthandResolver
public class FontShorthandResolver extends java.lang.Object implements IShorthandResolver
IShorthandResolver
implementation for fonts.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Set<java.lang.String>
FONT_SIZE_VALUES
Font size values.private static java.util.Set<java.lang.String>
FONT_WEIGHT_NOT_DEFAULT_VALUES
Font weight values.private static java.util.Set<java.lang.String>
UNSUPPORTED_VALUES_OF_FONT_SHORTHAND
Unsupported shorthand values.
-
Constructor Summary
Constructors Constructor Description FontShorthandResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.util.List<java.lang.String>
getFontProperties(java.lang.String shorthandExpression)
Gets the font properties.java.util.List<CssDeclaration>
resolveShorthand(java.lang.String shorthandExpression)
Resolves a shorthand expression.
-
-
-
Field Detail
-
UNSUPPORTED_VALUES_OF_FONT_SHORTHAND
private static final java.util.Set<java.lang.String> UNSUPPORTED_VALUES_OF_FONT_SHORTHAND
Unsupported shorthand values.
-
FONT_WEIGHT_NOT_DEFAULT_VALUES
private static final java.util.Set<java.lang.String> FONT_WEIGHT_NOT_DEFAULT_VALUES
Font weight values.
-
FONT_SIZE_VALUES
private static final java.util.Set<java.lang.String> FONT_SIZE_VALUES
Font size values.
-
-
Method Detail
-
resolveShorthand
public java.util.List<CssDeclaration> resolveShorthand(java.lang.String shorthandExpression)
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
private java.util.List<java.lang.String> getFontProperties(java.lang.String shorthandExpression)
Gets the font properties.- Parameters:
shorthandExpression
- the shorthand expression- Returns:
- the font properties
-
-