public class CssFontFace extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CssFontFace.CssFontFaceSrc
Class that defines a font face source.
|
static class |
CssFontFace.FontFormat
The Enum FontFormat.
|
Modifier and Type | Method and Description |
---|---|
static CssFontFace |
create(List<CssDeclaration> properties)
Create a CssFontFace instance from a list of CSS font attributes ("font-family" or "src").
|
String |
getFontFamily()
Gets the font-family.
|
List<CssFontFace.CssFontFaceSrc> |
getSources()
Gets the font face sources.
|
static boolean |
isSupportedFontFormat(CssFontFace.FontFormat format)
Checks whether in general we support requested font format.
|
static String[] |
splitSourcesSequence(String src)
Processes and splits a string sequence containing a url/uri.
|
public static CssFontFace create(List<CssDeclaration> properties)
CssFontFace
instance from a list of CSS font attributes ("font-family" or "src").
properties
- the font properties
CssFontFace
instance
public static String[] splitSourcesSequence(String src)
src
- a string representing css src attribute
String
urls for font loading
public static boolean isSupportedFontFormat(CssFontFace.FontFormat format)
format
- CssFontFace.FontFormat
public String getFontFamily()
public List<CssFontFace.CssFontFaceSrc> getSources()
Copyright © 1998–2021 iText Group NV. All rights reserved.