Class FontShorthandResolver

java.lang.Object
com.itextpdf.styledxmlparser.css.resolve.shorthand.impl.FontShorthandResolver
All Implemented Interfaces:
IShorthandResolver

public class FontShorthandResolver extends Object implements IShorthandResolver
IShorthandResolver implementation for fonts.
  • Field Details

    • UNSUPPORTED_VALUES_OF_FONT_SHORTHAND

      private static final Set<String> UNSUPPORTED_VALUES_OF_FONT_SHORTHAND
      Unsupported shorthand values.
    • FONT_WEIGHT_NOT_DEFAULT_VALUES

      private static final Set<String> FONT_WEIGHT_NOT_DEFAULT_VALUES
      Font weight values.
    • FONT_SIZE_VALUES

      private static final Set<String> FONT_SIZE_VALUES
      Font size values.
  • Constructor Details

    • FontShorthandResolver

      public FontShorthandResolver()
  • Method Details

    • resolveShorthand

      public List<CssDeclaration> resolveShorthand(String shorthandExpression)
      Description copied from interface: IShorthandResolver
      Resolves a shorthand expression.
      Specified by:
      resolveShorthand in interface IShorthandResolver
      Parameters:
      shorthandExpression - the shorthand expression
      Returns:
      a list of CSS declaration
    • getFontProperties

      private List<String> getFontProperties(String shorthandExpression)
      Gets the font properties.
      Parameters:
      shorthandExpression - the shorthand expression
      Returns:
      the font properties