com.lowagie.text.rtf.parser.destinations
public final class RtfDestinationFontTable extends RtfDestination
RtfDestinationFontTable
handles data destined for the font table destination
Since: 2.0.8
Field Summary | |
---|---|
String | charset
The \charset value |
String | cpg
The \cpg value |
static String | CHARSET_DEFAULT |
String | falt
The \falt alternate font if primary font is not available. |
int | fbias
The \fbias value |
String | fontemb
The \falt alternate font if primary font is not available. |
String | fontFamily
The family of the font being parsed. |
String | fontFile
The \falt alternate font if primary font is not available. |
String | fontFileCpg
The \falt alternate font if primary font is not available. |
HashMap | fontMap
Convert font mapping to FontFactory font objects. |
String | fontName
The name of the font being parsed. |
String | fontNr
The number of the font being parsed. |
String | fontType
The \falt alternate font if primary font is not available. |
int | fprq
The \fprq |
RtfImportMgr | importHeader
The RtfImportHeader to add font mappings to. |
String | nontaggedname
The \*\fname |
String | panose
The \*\panose font matching value if primary font is not available. |
int | state
state flag to handle different parsing of a font element |
static int | SETTING_ALTERNATE \falt |
static int | SETTING_FONTNAME \fname |
static int | SETTING_FONT_EMBED \fontemb |
static int | SETTING_FONT_FILE \ffile |
static int | SETTING_NORMAL Normal |
static int | SETTING_PANOSE \panose |
String | themeFont
The theme (Office 2007) |
String | trueType
The \fnil, \fttruetype value |
Constructor Summary | |
---|---|
RtfDestinationFontTable()
Constructor | |
RtfDestinationFontTable(RtfParser parser)
Constructs a new RtfFontTableParser.
|
Method Summary | |
---|---|
boolean | closeDestination() |
Font | createfont(String fontName)
Create a font via the FontFactory
|
Properties | getEnvironmentVariables()
Utility method to load the environment variables.
|
Font | getFont(String key)
Get a Font object from the font map object
|
boolean | handleCharacter(int ch) |
boolean | handleCloseGroup() |
boolean | handleControlWord(RtfCtrlWordData ctrlWordData) |
boolean | handleOpenGroup() |
boolean | handleOpeningSubGroup() |
void | importSystemFonts()
Load system fonts into the static FontFactory object
|
void | init(boolean importFonts)
Initialize the object.
|
void | processFont()
Process the font information that was parsed from the input.
|
void | setBias(String value)
Set the font bias |
void | setCharset(String charset)
Set the character-set to the parsed value.
|
void | setCodePage(String value)
Set the code page |
void | setFontAlternate(String fontAlternate)
Set the alternate font name.
|
void | setFontFamily(String fontFamily)
Set the font family to the parsed value.
|
void | setFontName(String fontName)
Set the font name to the parsed value.
|
void | setFontNumber(String fontNr)
Set the font number to the parsed value.
|
void | setParser(RtfParser parser) |
void | setPitch(String value)
Set the font pitch |
void | setThemeFont(String themeFont)
Set the font theme
|
void | setToDefaults() |
void | setTrueType(String value)
Set the TrueTtype type |
FontFactory
font objects.Parameters: parser an RtfParser.
Since: 2.0.8
FontFactory
Parameters: fontName The font name to create
Returns: The created Font
object
Since: 2.0.8
Returns: Properties object with environment variable information
Throws: Throwable
Since: 2.0.8
Font
object from the font map object
Parameters: key The font number to get
Returns: The mapped Font
object.
Since: 2.0.8
FontFactory
object
Since: 2.0.8
Parameters: importFonts true to import the fonts into the FontFactory, false do not load fonts
Since: 2.0.8
Since: 2.0.8
Parameters: value Bias value
Since: 2.0.8
Parameters: charset The charset value
Since: 2.0.8
Parameters: value The code page value
Since: 2.0.8
Parameters: fontAlternate The falt font value
Since: 2.0.8
Parameters: fontFamily The font family.
Since: 2.0.8
Parameters: fontName The font name.
Since: 2.0.8
Parameters: fontNr The font number.
Since: 2.0.8
Parameters: value Pitch value
Since: 2.0.8
Parameters: themeFont Theme value
Since: 2.0.8
Parameters: value The type
Since: 2.0.8