public class BestMatchingMapper extends Mapper
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
static int |
MATCH_THRESHOLD
Max difference for it to be considered an acceptable match.
|
boldForms, boldItalicForms, FONT_FALLBACK, fontMappings, italicForms, regularForms| Constructor and Description |
|---|
BestMatchingMapper() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,MicrosoftFonts.Font> |
getMsFontsFilenames() |
static void |
main(String[] args) |
void |
populateFontMappings(Set<String> documentFontNames,
Fonts wmlFonts)
Populate the fontMappings object.
|
get, getBoldForm, getBoldItalicForm, getFontMappings, getItalicForm, getRegularForm, getSubstituteFontXsltExtension, getSubstituteFontXsltExtension, put, registerBoldForm, registerBoldItalicForm, registerItalicForm, registerRegularForm, sizeprotected static org.slf4j.Logger log
public static final int MATCH_THRESHOLD
public static final Map<String,MicrosoftFonts.Font> getMsFontsFilenames()
public void populateFontMappings(Set<String> documentFontNames, Fonts wmlFonts) throws Exception
populateFontMappings in class MapperdocumentFontNames - - the fonts used in the documentwmlFonts - - the content model for the fonts partExceptionCopyright © 2007-2020. All Rights Reserved.