public class PhysicalFonts
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static FontCache |
fontCache |
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
PhysicalFonts() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addPhysicalFont(java.net.URI fontUrl)
Add a physical font's EmbedFontInfo object.
|
static void |
addPhysicalFonts(java.lang.String nameAsInFontTablePart,
java.net.URI fontUrl)
Add a physical font's EmbedFontInfo object.
|
static void |
discoverPhysicalFonts()
Autodetect fonts available on the system.
|
static PhysicalFont |
get(java.lang.String key)
Get a PhysicalFont
by case-insensitive name.
|
static PhysicalFont |
getBoldForm(PhysicalFont pf) |
static PhysicalFont |
getBoldItalicForm(PhysicalFont pf) |
static PhysicalFont |
getItalicForm(PhysicalFont pf) |
static java.lang.String |
getPhysicalFont(OpcPackage wmlPackage,
java.lang.String fontName) |
static java.util.List<PhysicalFont> |
getPhysicalFont(java.lang.String nameAsInFontTablePart,
java.net.URI fontUrl)
Get a physical font's EmbedFontInfo object.
|
static java.util.Map<java.lang.String,PhysicalFont> |
getPhysicalFonts()
Deprecated.
|
static java.lang.String |
getRegex() |
static void |
main(java.lang.String[] args) |
static void |
put(java.lang.String key,
PhysicalFont pf)
Put a PhysicalFont
by case-insensitive name.
|
static void |
setRegex(java.lang.String regex)
Set a regex to limit to the common fonts in order to lower memory use.
|
protected static org.slf4j.Logger log
protected static FontCache fontCache
@Deprecated public static java.util.Map<java.lang.String,PhysicalFont> getPhysicalFonts()
public static PhysicalFont get(java.lang.String key)
key - public static void put(java.lang.String key,
PhysicalFont pf)
key - pf - public static java.lang.String getRegex()
public static void setRegex(java.lang.String regex)
public static final void discoverPhysicalFonts()
throws java.lang.Exception
java.lang.Exceptionpublic static void addPhysicalFont(java.net.URI fontUrl)
fontUrl - eg new java.net.URL("file:" + path)public static void addPhysicalFonts(java.lang.String nameAsInFontTablePart,
java.net.URI fontUrl)
fontUrl - eg new java.net.URL("file:" + path)public static java.util.List<PhysicalFont> getPhysicalFont(java.lang.String nameAsInFontTablePart, java.net.URI fontUrl)
fontUrl - eg new java.net.URL("file:" + path)public static PhysicalFont getBoldForm(PhysicalFont pf)
public static PhysicalFont getBoldItalicForm(PhysicalFont pf)
public static PhysicalFont getItalicForm(PhysicalFont pf)
public static java.lang.String getPhysicalFont(OpcPackage wmlPackage, java.lang.String fontName)
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.ExceptionCopyright © 2007–2023. All rights reserved.