public abstract class BaseFontHelper extends BaseHelper
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
fontPaths |
protected boolean |
isEmbedFonts |
protected Map<String,OoxmlFont> |
ooxmlFonts |
protected Map<String,String> |
ooxmlFontsFirstLocales |
static String |
PPT_FONTS_DIR |
protected Writer |
relsWriter |
static String |
WORD_FONTS_DIR |
protected FileBufferedZip |
zip |
fontUtil, jasperReportsContext, writer| Constructor and Description |
|---|
BaseFontHelper(JasperReportsContext jasperReportsContext,
Writer writer,
Writer relsWriter,
FileBufferedZip zip,
boolean isEmbedFonts) |
| Modifier and Type | Method and Description |
|---|---|
void |
exportFonts() |
protected abstract String |
getBoldEmbedding(String id) |
protected abstract String |
getBoldItalicEmbedding(String id) |
protected abstract String |
getEndFontTag() |
protected abstract String |
getExporterKey() |
protected abstract String |
getFontPath(FontFace fontFace) |
protected abstract String |
getFontsDir() |
protected abstract String |
getItalicEmbedding(String id) |
protected abstract String |
getRegularEmbedding(String id) |
protected abstract String |
getStartFontTag(String fontName) |
String |
resolveFontFamily(Map<AttributedCharacterIterator.Attribute,Object> attributes,
Locale locale) |
close, flush, writepublic static final String WORD_FONTS_DIR
public static final String PPT_FONTS_DIR
protected final Writer relsWriter
protected final FileBufferedZip zip
protected final boolean isEmbedFonts
public BaseFontHelper(JasperReportsContext jasperReportsContext, Writer writer, Writer relsWriter, FileBufferedZip zip, boolean isEmbedFonts)
public void exportFonts()
throws IOException
IOExceptionpublic String resolveFontFamily(Map<AttributedCharacterIterator.Attribute,Object> attributes, Locale locale)
protected abstract String getExporterKey()
protected abstract String getEndFontTag()
protected abstract String getFontsDir()
Copyright © 2020 TIBCO Software Inc.. All rights reserved.