public class FontManager extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_USE_CACHE
Use cache (record previously detected font triplet info)
|
Constructor and Description |
---|
FontManager()
Main constructor
|
Modifier and Type | Method and Description |
---|---|
static FontResolver |
createMinimalFontResolver() |
String |
getFontBaseURL()
Returns the font base URL.
|
FontCache |
getFontCache()
Returns the font cache instance used by this font manager.
|
protected FontSubstitutions |
getFontSubstitutions()
Returns the font substitution catalog
|
FontTriplet.Matcher |
getReferencedFontsMatcher()
Gets the
FontTriplet.Matcher that can be used to identify the fonts that shall
be referenced rather than embedded. |
boolean |
isBase14KerningEnabled() |
void |
setBase14KerningEnabled(boolean value)
Controls whether kerning is activated on base 14 fonts.
|
void |
setFontBaseURL(String fontBase)
Sets the font base URL.
|
void |
setFontSubstitutions(FontSubstitutions substitutions)
Sets the font substitutions
|
void |
setReferencedFontsMatcher(FontTriplet.Matcher matcher)
Sets the
FontTriplet.Matcher that can be used to identify the fonts that shall
be referenced rather than embedded. |
void |
setup(FontInfo fontInfo,
FontCollection[] fontCollections)
Sets up the fonts on a given FontInfo object.
|
void |
setUseCache(boolean useCache)
Whether or not to cache results of font triplet detection/auto-config
|
boolean |
useCache()
Cache results of font triplet detection/auto-config?
|
public static final boolean DEFAULT_USE_CACHE
public void setFontBaseURL(String fontBase) throws MalformedURLException
fontBase
- font base URLMalformedURLException
- if there's a problem with a URLpublic String getFontBaseURL()
public boolean isBase14KerningEnabled()
public void setBase14KerningEnabled(boolean value)
value
- true if kerning should be activatedpublic void setFontSubstitutions(FontSubstitutions substitutions)
substitutions
- font substitutionsprotected FontSubstitutions getFontSubstitutions()
public void setUseCache(boolean useCache)
useCache
- use cache or notpublic boolean useCache()
public FontCache getFontCache()
public void setup(FontInfo fontInfo, FontCollection[] fontCollections)
FontCollection
objects.fontInfo
- the FontInfo object to set upfontCollections
- the array of font collections/sourcespublic static FontResolver createMinimalFontResolver()
public void setReferencedFontsMatcher(FontTriplet.Matcher matcher)
FontTriplet.Matcher
that can be used to identify the fonts that shall
be referenced rather than embedded.matcher
- the font triplet matcherpublic FontTriplet.Matcher getReferencedFontsMatcher()
FontTriplet.Matcher
that can be used to identify the fonts that shall
be referenced rather than embedded.Copyright © 2007-2019. All Rights Reserved.