Class AdvancedScriptsConfig

java.lang.Object
com.itextpdf.typography.config.AdvancedScriptsConfig
All Implemented Interfaces:
IFeaturesConfig

public class AdvancedScriptsConfig extends Object implements IFeaturesConfig
A wrapper class for IFeaturesConfig instances, that gives more control over the features to apply and their order.
  • Constructor Details

    • AdvancedScriptsConfig

      public AdvancedScriptsConfig (IFeaturesConfig featureConfig)
      Wraps around the given 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.

      Parameters:
      featureConfig - the IFeaturesConfig to wrap around.
    • AdvancedScriptsConfig

      public AdvancedScriptsConfig (Set<Character.UnicodeScript> scripts)
      Creates an 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.

      Parameters:
      scripts - a Set of scripts which are to be configured by the new AdvancedScriptsConfig instance.
  • Method Details