Package com.lowagie.text
Class TextRenderingOptions
java.lang.Object
com.lowagie.text.TextRenderingOptions
Text rendering options, including the default language of the document and a flag to enable font glyph substitution
(if FOP is available).
- Since:
- 3.1.15
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a text rendering options instance with the default options: glyph substitution enabled and "dflt" as document language.TextRenderingOptions
(String documentLanguage, boolean glyphSubstitutionEnabled) Creates a text rendering options instance. -
Method Summary
Modifier and TypeMethodDescriptionThe default language of the document.boolean
Returns the glyph substitution enabled flag.void
setDocumentLanguage
(String documentLanguage) Sets the default language of the document.void
setGlyphSubstitutionEnabled
(boolean glyphSubstitutionEnabled) Sets the font glyph substitution enabled flag.
-
Field Details
-
DOCUMENT_LANGUAGE_DEFAULT
- See Also:
-
documentLanguage
The default language of the document. Can be set to values like "en_US". This language is used inFopGlyphProcessor
to determine which glyphs are to be substituted. The default "dflt" means that all glyphs which can be replaced will be substituted. -
glyphSubstitutionEnabled
private boolean glyphSubstitutionEnabled
-
-
Constructor Details
-
TextRenderingOptions
public TextRenderingOptions()Creates a text rendering options instance with the default options: glyph substitution enabled and "dflt" as document language. -
TextRenderingOptions
Creates a text rendering options instance.- Parameters:
documentLanguage
- the wanted languageglyphSubstitutionEnabled
- whether glyph substitution is enabled
-
-
Method Details
-
getDocumentLanguage
The default language of the document. Can be set to values like "en_US". This language is used in FopGlyphProcessor to determine which glyphs are to be substituted. The default "dflt" means that all glyphs which can be replaced will be substituted.- Returns:
- the current document language
-
setDocumentLanguage
Sets the default language of the document.- Parameters:
documentLanguage
- the document language- See Also:
-
isGlyphSubstitutionEnabled
public boolean isGlyphSubstitutionEnabled()Returns the glyph substitution enabled flag.- Returns:
- the glyph substitution enabled flag #see
Document.setGlyphSubstitutionEnabled(boolean)
-
setGlyphSubstitutionEnabled
public void setGlyphSubstitutionEnabled(boolean glyphSubstitutionEnabled) Sets the font glyph substitution enabled flag.- Parameters:
glyphSubstitutionEnabled
- whether glyph substitution is enabled
-