public class AdvancedScriptsConfig extends Object implements IFeaturesConfig
IFeaturesConfig instances, that gives more control over the features to apply and their order.
| Constructor and Description |
|---|
AdvancedScriptsConfig(IFeaturesConfig featureConfig)
Wraps around the given IFeaturesConfig.
|
AdvancedScriptsConfig(Set<Character.UnicodeScript> scripts)
Creates an IFeaturesConfig instance for the given scripts with empty features list.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getFeaturesList()
Gives full access to the features list to be applied.
|
Set<Character.UnicodeScript> |
getScripts()
Gets scripts that are affected by this instance of IFeaturesConfig.
|
List<String> |
listFeatures()
Enlists OpenType features that are applied in given order to the scripts defined by IFeaturesConfig.getScripts().
|
public AdvancedScriptsConfig(IFeaturesConfig featureConfig)
IFeaturesConfig. After wrapping all the features and scripts from the original IFeaturesConfig are preserved in this AdvancedScriptsConfig instance.
Features list can be modified via getFeaturesList() method.
featureConfig - the IFeaturesConfig to wrap around.
public AdvancedScriptsConfig(Set<Character.UnicodeScript> scripts)
IFeaturesConfig instance 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. IFeaturesConfig allows 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.
scripts - a Set of scripts which are to be configured by the new AdvancedScriptsConfig instance.
public Set<Character.UnicodeScript> getScripts()
IFeaturesConfig
IFeaturesConfig.
getScripts in interface IFeaturesConfig
Set of scripts which processing is defined by this IFeaturesConfig.
public List<String> listFeatures()
IFeaturesConfig
IFeaturesConfig.getScripts().
listFeatures in interface IFeaturesConfig
List of OpenType features tags to be applied.
Copyright © 1998–2021 iText Group NV. All rights reserved.