Class BaseFontHelper
- java.lang.Object
-
- net.sf.jasperreports.engine.export.ooxml.BaseHelper
-
- net.sf.jasperreports.engine.export.ooxml.BaseFontHelper
-
- Direct Known Subclasses:
DocxFontHelper,PptxFontHelper
public abstract class BaseFontHelper extends BaseHelper
- Author:
- Sanda Zaharia(shertage@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,String>fontPathsprotected booleanisEmbedFontsprotected Map<String,OoxmlFont>ooxmlFontsprotected Map<String,String>ooxmlFontsFirstLocalesstatic StringPPT_FONTS_DIRprotected WriterrelsWriterstatic StringWORD_FONTS_DIRprotected FileBufferedZipzip-
Fields inherited from class net.sf.jasperreports.engine.export.ooxml.BaseHelper
fontUtil, jasperReportsContext, writer
-
-
Constructor Summary
Constructors Constructor Description BaseFontHelper(JasperReportsContext jasperReportsContext, Writer writer, Writer relsWriter, FileBufferedZip zip, boolean isEmbedFonts)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidexportFonts()protected abstract StringgetBoldEmbedding(String id)protected abstract StringgetBoldItalicEmbedding(String id)protected abstract StringgetEndFontTag()protected abstract StringgetExporterKey()protected abstract StringgetFontPath(FontFace fontFace)protected abstract StringgetFontsDir()protected abstract StringgetItalicEmbedding(String id)protected abstract StringgetRegularEmbedding(String id)protected abstract StringgetStartFontTag(String fontName)StringresolveFontFamily(Map<AttributedCharacterIterator.Attribute,Object> attributes, Locale locale)-
Methods inherited from class net.sf.jasperreports.engine.export.ooxml.BaseHelper
close, flush, write
-
-
-
-
Field Detail
-
WORD_FONTS_DIR
public static final String WORD_FONTS_DIR
- See Also:
- Constant Field Values
-
PPT_FONTS_DIR
public static final String PPT_FONTS_DIR
- See Also:
- Constant Field Values
-
relsWriter
protected final Writer relsWriter
-
zip
protected final FileBufferedZip zip
-
isEmbedFonts
protected final boolean isEmbedFonts
-
-
Constructor Detail
-
BaseFontHelper
public BaseFontHelper(JasperReportsContext jasperReportsContext, Writer writer, Writer relsWriter, FileBufferedZip zip, boolean isEmbedFonts)
-
-
Method Detail
-
exportFonts
public void exportFonts() throws IOException- Throws:
IOException
-
resolveFontFamily
public String resolveFontFamily(Map<AttributedCharacterIterator.Attribute,Object> attributes, Locale locale)
-
getExporterKey
protected abstract String getExporterKey()
-
getEndFontTag
protected abstract String getEndFontTag()
-
getFontsDir
protected abstract String getFontsDir()
-
-