Class CssFontFace
java.lang.Object
com.itextpdf.styledxmlparser.css.font.CssFontFace
Class that will examine the font as described in the CSS, and store it in a form that the font provider will understand.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classClass that defines a font face source.static enumThe Enum FontFormat. -
Method Summary
Modifier and TypeMethodDescriptionstatic CssFontFacecreate(List<CssDeclaration> properties) Create aCssFontFaceinstance from a list of CSS font attributes ("font-family" or "src").Gets the font-family.Gets the font face sources.static booleanChecks whether in general we support requested font format.static String[]Processes and splits a string sequence containing a url/uri.
-
Method Details
-
create
Create aCssFontFaceinstance from a list of CSS font attributes ("font-family" or "src").- Parameters:
-
properties- the font properties - Returns:
-
the
CssFontFaceinstance
-
splitSourcesSequence
Processes and splits a string sequence containing a url/uri.- Parameters:
-
src- a string representing css src attribute - Returns:
-
an array of
Stringurls for font loading
-
isSupportedFontFormat
Checks whether in general we support requested font format.- Parameters:
-
format-CssFontFace.FontFormat - Returns:
- true, if supported or unrecognized.
-
getFontFamily
Gets the font-family. Actually font-family is an alias.- Returns:
- the font family (or alias)
-
getSources
Gets the font face sources.- Returns:
- the sources
-