Package com.itextpdf.typography.config
Class TypographyConfigurator
java.lang.Object
com.itextpdf.typography.config.TypographyConfigurator
Provides a way to configure certain aspects of pdfCalligraph processing, like applying OpenType features to specific scripts inside some layout elements (whole document, paragraph, text chunk etc).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddFeatureConfig
(IFeaturesConfig featureConfig) AddsIFeaturesConfig
instance into consideration for text processing.Gets scripts that are affected by this instance ofTypographyConfigurator
.FindsIFeaturesConfig
that was already set for the given script.
-
Constructor Details
-
TypographyConfigurator
public TypographyConfigurator()
-
-
Method Details
-
addFeatureConfig
AddsIFeaturesConfig
instance into consideration for text processing.If two added
IFeaturesConfig
are associated with the same script, only the one that was added latest is applied for this script. When several scripts are associated with the singleIFeaturesConfig
, it should rather mean that those scripts are processed in exactly the same manner, rather than they have some mutual features.- Parameters:
-
featureConfig
- a configuration to be applied. - Returns:
-
this
TypographyConfigurator
instance.
-
getFeatureConfig
FindsIFeaturesConfig
that was already set for the given script.- Parameters:
-
script
- anCharacter.UnicodeScript
for which corresponding configuration is searched. - Returns:
-
the
IFeaturesConfig
for the givenCharacter.UnicodeScript
, or null if no configuration was set.
-
getConfiguredScripts
Gets scripts that are affected by this instance ofTypographyConfigurator
.- Returns:
-
a
Set
of scripts which processing is defined by someIFeaturesConfig
.
-