org.apache.poi.sl.draw
Interface DrawFontManager


public interface DrawFontManager

Manages fonts when rendering slides. Use this class to handle unknown / missing fonts or to substitute fonts


Method Summary
 java.lang.String getFallbackFont(java.lang.String typeface, int pitchFamily)
          In case the original font doesn't contain a glyph, use the returned fallback font as an alternative
 java.lang.String getRendererableFont(java.lang.String typeface, int pitchFamily)
          select a font to be used to paint text
 

Method Detail

getRendererableFont

java.lang.String getRendererableFont(java.lang.String typeface,
                                     int pitchFamily)
select a font to be used to paint text

Parameters:
typeface - the font family as defined in the .pptx file. This can be unknown or missing in the graphic environment.
pitchFamily - a pitch-and-family, see HwmfFont and HwmfFont for how to calculate those (ancient) values
Returns:
the font to be used to paint text

getFallbackFont

java.lang.String getFallbackFont(java.lang.String typeface,
                                 int pitchFamily)
In case the original font doesn't contain a glyph, use the returned fallback font as an alternative

Parameters:
typeface - the font family as defined in the .pptx file.
pitchFamily - a pitch-and-family, see HwmfFont and HwmfFont for how to calculate those (ancient) values
Returns:
the font to be used as a fallback for the original typeface