|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.fonts.FontManager
public class FontManager
The manager of fonts. The class holds a reference to the font cache and information about font substitution, referenced fonts and similar.
Field Summary | |
---|---|
static boolean |
DEFAULT_USE_CACHE
Use cache (record previously detected font triplet info) |
Constructor Summary | |
---|---|
FontManager()
Main constructor |
Method Summary | |
---|---|
static FontResolver |
createMinimalFontResolver()
|
java.lang.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(java.lang.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 |
void |
updateReferencedFonts(java.util.List fontInfoList)
Updates the referenced font list using the FontManager's referenced fonts matcher ( getReferencedFontsMatcher() ). |
void |
updateReferencedFonts(java.util.List fontInfoList,
FontTriplet.Matcher matcher)
Updates the referenced font list. |
boolean |
useCache()
Cache results of font triplet detection/auto-config? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean DEFAULT_USE_CACHE
Constructor Detail |
---|
public FontManager()
Method Detail |
---|
public void setFontBaseURL(java.lang.String fontBase) throws java.net.MalformedURLException
fontBase
- font base URL
java.net.MalformedURLException
- if there's a problem with a URLpublic java.lang.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.
public void updateReferencedFonts(java.util.List fontInfoList)
getReferencedFontsMatcher()
).
fontInfoList
- a font info listpublic void updateReferencedFonts(java.util.List fontInfoList, FontTriplet.Matcher matcher)
fontInfoList
- a font info listmatcher
- the font triplet matcher to use
|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |