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 booleanstatic final Stringprotected final Writerstatic final Stringprotected final FileBufferedZipFields 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 TypeMethodDescriptionvoidprotected abstract Stringprotected abstract Stringprotected abstract Stringprotected abstract Stringprotected abstract StringgetFontPath(FontFace fontFace) protected abstract Stringprotected abstract Stringprotected abstract Stringprotected abstract StringgetStartFontTag(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
-