Class CssFontFaceRule
java.lang.Object
com.itextpdf.styledxmlparser.css.CssStatement
com.itextpdf.styledxmlparser.css.CssAtRule
com.itextpdf.styledxmlparser.css.CssNestedAtRule
com.itextpdf.styledxmlparser.css.CssFontFaceRule
Class to store a CSS font face At rule.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<CssDeclaration> Properties in the form of a list of CSS declarations.Fields inherited from class CssNestedAtRule
body -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBodyCssDeclarations(List<CssDeclaration> cssDeclarations) Adds the body CSS declarations.Gets the properties.Resolves `unicode-range` property if it exists in the properties.toString()Methods inherited from class CssNestedAtRule
addStatementsToBody, addStatementToBody, getCssRuleSets, getRuleParameters, getStatementsMethods inherited from class CssAtRule
getRuleName
-
Field Details
-
properties
Properties in the form of a list of CSS declarations.
-
-
Constructor Details
-
CssFontFaceRule
public CssFontFaceRule()Instantiates a new CSS font face rule.
-
-
Method Details
-
getProperties
-
addBodyCssDeclarations
Description copied from class:CssNestedAtRuleAdds the body CSS declarations.- Overrides:
addBodyCssDeclarationsin classCssNestedAtRule- Parameters:
cssDeclarations- a list of CSS declarations
-
toString
- Overrides:
toStringin classCssNestedAtRule
-
resolveUnicodeRange
Resolves `unicode-range` property if it exists in the properties.- Returns:
- the resolved range or
nullif there is no `unicode-range` property
-