Class BaseFontHelper
java.lang.Object
net.sf.jasperreports.engine.export.ooxml.BaseHelper
net.sf.jasperreports.engine.export.ooxml.BaseFontHelper
- Direct Known Subclasses:
DocxFontHelper
,PptxFontHelper
- Author:
- Sanda Zaharia(shertage@users.sourceforge.net)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final boolean
static final String
protected final Writer
static final String
protected final FileBufferedZip
Fields inherited from class net.sf.jasperreports.engine.export.ooxml.BaseHelper
fontUtil, jasperReportsContext, writer
-
Constructor Summary
ConstructorsConstructorDescriptionBaseFontHelper
(JasperReportsContext jasperReportsContext, Writer writer, Writer relsWriter, FileBufferedZip zip, boolean isEmbedFonts) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected abstract String
protected abstract String
protected abstract String
protected abstract String
protected abstract String
getFontPath
(FontFace fontFace) protected abstract String
protected abstract String
protected abstract String
protected abstract String
getStartFontTag
(String fontName) resolveFontFamily
(Map<AttributedCharacterIterator.Attribute, Object> attributes, Locale locale) Methods inherited from class net.sf.jasperreports.engine.export.ooxml.BaseHelper
close, flush, write
-
Field Details
-
WORD_FONTS_DIR
- See Also:
-
PPT_FONTS_DIR
- See Also:
-
ooxmlFontsFirstLocales
-
ooxmlFonts
-
fontPaths
-
relsWriter
-
zip
-
isEmbedFonts
protected final boolean isEmbedFonts
-
-
Constructor Details
-
BaseFontHelper
public BaseFontHelper(JasperReportsContext jasperReportsContext, Writer writer, Writer relsWriter, FileBufferedZip zip, boolean isEmbedFonts)
-
-
Method Details
-
exportFonts
- Throws:
IOException
-
resolveFontFamily
public String resolveFontFamily(Map<AttributedCharacterIterator.Attribute, Object> attributes, Locale locale) -
getExporterKey
-
getStartFontTag
-
getEndFontTag
-
getFontsDir
-
getRegularEmbedding
-
getBoldEmbedding
-
getItalicEmbedding
-
getBoldItalicEmbedding
-
getFontPath
-