Class RtfFontManager
java.lang.Object
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfFontManager
RTF font table.
This work was authored by Andreas Putz (a.putz@skynamics.com).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
Adds a font to the table.private String
getFontKey
(String family) int
getFontNumber
(String family) Gets the number of font in the font tablestatic RtfFontManager
Singelton.private void
init()
Initialize the font table.void
writeFonts
(RtfHeader header) Writes the font table in the header.
-
Field Details
-
instance
Singelton instance -
fontIndex
Index table for the fonts -
fontTable
Used fonts to this vector
-
-
Constructor Details
-
RtfFontManager
private RtfFontManager()Constructor.
-
-
Method Details
-
getInstance
Singelton.- Returns:
- The instance of RtfFontManager
-
init
private void init()Initialize the font table. -
getFontNumber
Gets the number of font in the font table- Parameters:
family
- Font family name ('Helvetica')- Returns:
- The number of the font in the table
-
writeFonts
Writes the font table in the header.- Parameters:
header
- The header container to write in- Throws:
IOException
- On error
-
getFontKey
-
addFont
Adds a font to the table.- Parameters:
family
- Identifier of font
-