|
Oracle Outside In Java API Reference 8.5.4 F11002-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.oracle.outsidein.options.FontAliases
public class FontAliases
Maps source document fonts to different fonts in the destination document. This is useful when a source document contains fonts that are not present on the machine that performs the transformation, and the user would like to ensure that a specific substitute font is selected. A source font can be explicitly mapped to a font that is expected to be present, and the destination document will replace occurrences of that original source font using this list of font aliases.
OptionsCache.setFontAliasList(FontAliases)
Constructor Summary | |
---|---|
FontAliases(boolean useDefaults, java.util.Map<java.lang.String,java.lang.String> aliasList) Constructs a new list of font aliases for use as the parameter to OptionsCache.setFontAliasList(FontAliases) . |
Method Summary | |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getAliasList() Obtains the list of font aliases set. |
static java.util.Map<java.lang.String,java.lang.String> |
getDefaultAliases() Obtains a copy of the immutable platform-specific default font aliases. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FontAliases(boolean useDefaults, java.util.Map<java.lang.String,java.lang.String> aliasList)
OptionsCache.setFontAliasList(FontAliases)
.
useDefaults
- Whether to initialize the font alias list to the set of platform-specific default aliases (true) before applying the provided aliasList
or to apply the provided aliasList
on an empty list (false).aliasList
- the font alias list as a key-value pair with the original source name as the key and the destination font as the valueMethod Detail |
---|
public java.util.Map<java.lang.String,java.lang.String> getAliasList()
null
if no aliases are setpublic static java.util.Map<java.lang.String,java.lang.String> getDefaultAliases()
FontAliases(boolean, java.util.Map)
is set to true
. (original source fonts are the keys, and destination fonts are the values)
|
Oracle Outside In Java API Reference 8.5.4 F11002-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |