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, size
protected 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 Mapper
documentFontNames
- - the fonts used in the documentwmlFonts
- - the content model for the fonts partException
Copyright © 2007-2019. All Rights Reserved.