Package com.itextpdf.typography.config
Class AdvancedScriptsConfig
java.lang.Object
com.itextpdf.typography.config.AdvancedScriptsConfig
- All Implemented Interfaces:
-
IFeaturesConfig
A wrapper class for
IFeaturesConfig instances, that gives more control over the features to apply and their order.
-
Constructor Summary
ConstructorsConstructorDescriptionAdvancedScriptsConfig(IFeaturesConfig featureConfig) Wraps around the givenIFeaturesConfig.AdvancedScriptsConfig(Set<Character.UnicodeScript> scripts) Creates anIFeaturesConfiginstance for the given scripts with empty features list. -
Method Summary
Modifier and TypeMethodDescriptionGives full access to the features list to be applied.Gets scripts that are affected by this instance ofIFeaturesConfig.Enlists OpenType features that are applied in given order to the scripts defined byIFeaturesConfig.getScripts().
-
Constructor Details
-
AdvancedScriptsConfig
Wraps around the givenIFeaturesConfig. After wrapping all the features and scripts from the originalIFeaturesConfigare preserved in thisAdvancedScriptsConfiginstance.Features list can be modified via
getFeaturesList()method.- Parameters:
-
featureConfig- theIFeaturesConfigto wrap around.
-
AdvancedScriptsConfig
Creates anIFeaturesConfiginstance for the given scripts with empty features list.Be aware that if this configuration is applied, it overrides any default processing of the scripts that are defined in this
IFeaturesConfig.IFeaturesConfigallows to list OpenType features that are applied to certain scripts in given order if they are defined in font. Most of the complex scripts require more sophisticated approach than just blind application of features to the whole text, thus use this class with caution.- Parameters:
-
scripts- aSetof scripts which are to be configured by the newAdvancedScriptsConfiginstance.
-
-
Method Details
-
getScripts
Description copied from interface:IFeaturesConfigGets scripts that are affected by this instance ofIFeaturesConfig.- Specified by:
-
getScriptsin interfaceIFeaturesConfig - Returns:
-
an unmodifiable
Setof scripts which processing is defined by thisIFeaturesConfig.
-
listFeatures
Description copied from interface:IFeaturesConfigEnlists OpenType features that are applied in given order to the scripts defined byIFeaturesConfig.getScripts().- Specified by:
-
listFeaturesin interfaceIFeaturesConfig - Returns:
-
an unmodifiable
Listof OpenType features tags to be applied.
-
getFeaturesList
Gives full access to the features list to be applied.- Returns:
-
a modifiable
Listof OpenType feature tags.
-