public abstract class Mapper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FONT_FALLBACK |
protected static Map<String,PhysicalFont> |
fontMappings |
protected static org.slf4j.Logger |
log |
Constructor and Description |
---|
Mapper() |
Modifier and Type | Method and Description |
---|---|
PhysicalFont |
get(String key)
Get a PhysicalFont from FontMappings,
by case-insensitive name.
|
Map<String,PhysicalFont> |
getFontMappings()
Deprecated.
|
static String |
getSubstituteFontXsltExtension(Mapper s,
String documentStyleId,
String bolditalic,
boolean fontFamilyStack) |
String |
getSubstituteFontXsltExtension(String documentStyleId,
String bolditalic,
boolean fontFamilyStack) |
abstract void |
populateFontMappings(Set<String> documentFontNames,
Fonts wmlFonts)
Populate the fontMappings object.
|
void |
put(String key,
PhysicalFont pf)
Put a PhysicalFont into FontMappings,
by case-insensitive name.
|
int |
size() |
protected static org.slf4j.Logger log
protected static final Map<String,PhysicalFont> fontMappings
public static final String FONT_FALLBACK
@Deprecated public Map<String,PhysicalFont> getFontMappings()
public PhysicalFont get(String key)
key
- public void put(String key, PhysicalFont pf)
key
- pf
- public int size()
public abstract void populateFontMappings(Set<String> documentFontNames, Fonts wmlFonts) throws Exception
documentFontNames
- - the fonts used in the documentwmlFonts
- - the content model for the fonts partException
public static String getSubstituteFontXsltExtension(Mapper s, String documentStyleId, String bolditalic, boolean fontFamilyStack)
Copyright © 2007-2014. All Rights Reserved.