Skip navigation links

Oracle Outside In Java API Reference
8.5.4

E91699-01


com.oracle.outsidein.options
Class FontAliases

java.lang.Object
  extended by com.oracle.outsidein.options.FontAliases


public class FontAliases
extends java.lang.Object

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.

See Also:
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

FontAliases

public 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).
Parameters:
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 value

Method Detail

getAliasList

public java.util.Map<java.lang.String,java.lang.String> getAliasList()
Obtains the list of font aliases set.
Returns:
the mapping of font aliases (original source fonts are the keys, and destination fonts are the values) or null if no aliases are set

getDefaultAliases

public static java.util.Map<java.lang.String,java.lang.String> getDefaultAliases()
Obtains a copy of the immutable platform-specific default font aliases.
Returns:
the mapping of default font aliases that are applied if the first argument to FontAliases(boolean, java.util.Map) is set to true. (original source fonts are the keys, and destination fonts are the values)

Skip navigation links

Oracle Outside In Java API Reference
8.5.4

E91699-01


Copyright © 2010, 2018, Oracle and/or its affiliates. All rights reserved.