public static class CssFontFace.CssFontFaceSrc extends Object
Modifier and Type | Field and Description |
---|---|
static int |
FormatGroup
The Constant FormatGroup.
|
static int |
TypeGroup
The Constant TypeGroup.
|
static int |
UrlGroup
The Constant UrlGroup.
|
static Pattern |
UrlPattern
The UrlPattern used to compose a source path.
|
Modifier and Type | Method and Description |
---|---|
static CssFontFace.CssFontFaceSrc |
create(String src)
Creates a CssFontFace.CssFontFaceSrc object by parsing a String trying to match patterns that reveal the font name, whether that font is local, and which format the font is in.
|
CssFontFace.FontFormat |
getFormat() |
String |
getSrc() |
boolean |
isLocal() |
static CssFontFace.FontFormat |
parseFormat(String formatStr)
Parses a String to a font format.
|
String |
toString() |
static String |
unquote(String quotedString)
Removes single and double quotes at the start and the end of a String .
|
public static final Pattern UrlPattern
public static final int TypeGroup
public static final int UrlGroup
public static final int FormatGroup
public CssFontFace.FontFormat getFormat()
public String getSrc()
public boolean isLocal()
public static CssFontFace.CssFontFaceSrc create(String src)
CssFontFace.CssFontFaceSrc
object by parsing a String
trying to match patterns that reveal the font name, whether that font is local, and which format the font is in.
src
- a string containing information about a font
CssFontFace.CssFontFaceSrc
object
public static CssFontFace.FontFormat parseFormat(String formatStr)
String
to a font format.
formatStr
- a string
Copyright © 1998–2022 iText Group NV. All rights reserved.