Package com.scroogexhtml.rtf
Class FontTable
java.lang.Object
com.scroogexhtml.rtf.FontTable
Contains a list of fonts which are defined in the RTF header.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget
(int key) Note: returns EMPTY_FONT when no matching font exists in the font table.int
getFontCharSet
(int fontNr) Return the charset for the specified font.getFontName
(int fontNr) Return the font name for the specified font.void
put
(int fontNr, FontDescriptor fontDescriptor) Map the font descriptor to the given font nr.
-
Constructor Details
-
FontTable
public FontTable()
-
-
Method Details
-
get
Note: returns EMPTY_FONT when no matching font exists in the font table.- Parameters:
key
- the font index- Returns:
- the FontDescriptor for the given font index, or EMPTY_FONT.
-
getFontName
Return the font name for the specified font.- Parameters:
fontNr
- font number.- Returns:
- font name.
-
getFontCharSet
public int getFontCharSet(int fontNr) Return the charset for the specified font.- Parameters:
fontNr
- font number.- Returns:
- charset
-
put
Map the font descriptor to the given font nr.- Parameters:
fontNr
- font number.fontDescriptor
- font descriptor
-