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>
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
-
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 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)
-
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()
-
-