pdfCalligraph 4.0.2 API
iText.Typography.Config.AdvancedScriptsConfig Class Reference

A wrapper class for IFeaturesConfig instances, that gives more control over the features to apply and their order. More...

Inheritance diagram for iText.Typography.Config.AdvancedScriptsConfig:
iText.Typography.Config.IFeaturesConfig

Public Member Functions

  AdvancedScriptsConfig (IFeaturesConfig featureConfig)
  Wraps around the given IFeaturesConfig. More...
 
  AdvancedScriptsConfig (ICollection< UnicodeScript > scripts)
  Creates an IFeaturesConfig instance for the given scripts with empty features list. More...
 
virtual ICollection< UnicodeScript >  GetScripts ()
  Gets scripts that are affected by this instance of IFeaturesConfig. More...
 
virtual IList< String >  ListFeatures ()
  Enlists OpenType features that are applied in given order to the scripts defined by GetScripts(). More...
 
virtual IList< String >  GetFeaturesList ()
  Gives full access to the features list to be applied. More...
 

Detailed Description

A wrapper class for IFeaturesConfig instances, that gives more control over the features to apply and their order.

Constructor & Destructor Documentation

◆ AdvancedScriptsConfig() [1/2]

iText.Typography.Config.AdvancedScriptsConfig.AdvancedScriptsConfig ( IFeaturesConfig  featureConfig )
inline

Wraps around the given IFeaturesConfig.

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() [2/2]

iText.Typography.Config.AdvancedScriptsConfig.AdvancedScriptsConfig ( ICollection< UnicodeScript >  scripts )
inline

Creates an IFeaturesConfig instance for the given scripts with empty features list.

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 Java.Util.Set of scripts which are to be configured by the new AdvancedScriptsConfig instance.

Member Function Documentation

◆ GetFeaturesList()

virtual IList iText.Typography.Config.AdvancedScriptsConfig.GetFeaturesList ( )
inlinevirtual

Gives full access to the features list to be applied.

Returns
a modifiable System.Collections.IList of OpenType feature tags.

◆ GetScripts()

virtual ICollection iText.Typography.Config.AdvancedScriptsConfig.GetScripts ( )
inlinevirtual

Gets scripts that are affected by this instance of IFeaturesConfig.

Returns
an unmodifiable Java.Util.Set of scripts which processing is defined by this IFeaturesConfig.

Implements iText.Typography.Config.IFeaturesConfig.

◆ ListFeatures()

virtual IList iText.Typography.Config.AdvancedScriptsConfig.ListFeatures ( )
inlinevirtual

Enlists OpenType features that are applied in given order to the scripts defined by GetScripts().

Returns
an unmodifiable System.Collections.IList of OpenType features tags to be applied.

Implements iText.Typography.Config.IFeaturesConfig.