Package com.itextpdf.styledxmlparser.css
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
Fields inherited from class com.itextpdf.styledxmlparser.css.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 com.itextpdf.styledxmlparser.css.CssNestedAtRule
addStatementsToBody, addStatementToBody, getCssRuleSets, getRuleParameters, getStatementsMethods inherited from class com.itextpdf.styledxmlparser.css.CssAtRule
getRuleName
-
Constructor Details
-
CssFontFaceRule
public CssFontFaceRule()Instantiates a new CSS font face rule.
-
-
Method Details
-
getProperties
Gets the properties.- Returns:
- the properties
-
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
-