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

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). More...

Public Member Functions

virtual TypographyConfigurator  AddFeatureConfig (IFeaturesConfig featureConfig)
  Adds IFeaturesConfig instance into consideration for text processing. More...
 
virtual IFeaturesConfig  GetFeatureConfig (UnicodeScript? script)
  Finds IFeaturesConfig that was already set for the given script. More...
 
virtual ICollection< UnicodeScript >  GetConfiguredScripts ()
  Gets scripts that are affected by this instance of TypographyConfigurator. More...
 

Detailed Description

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).

Member Function Documentation

◆ AddFeatureConfig()

virtual TypographyConfigurator iText.Typography.Config.TypographyConfigurator.AddFeatureConfig ( IFeaturesConfig  featureConfig )
inlinevirtual

Adds IFeaturesConfig instance into consideration for text processing.

Adds IFeaturesConfig 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 single IFeaturesConfig , 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.

◆ GetConfiguredScripts()

virtual ICollection iText.Typography.Config.TypographyConfigurator.GetConfiguredScripts ( )
inlinevirtual

Gets scripts that are affected by this instance of TypographyConfigurator.

Returns
a Java.Util.Set of scripts which processing is defined by some IFeaturesConfig.

◆ GetFeatureConfig()

virtual IFeaturesConfig iText.Typography.Config.TypographyConfigurator.GetFeatureConfig ( UnicodeScript?  script )
inlinevirtual

Finds IFeaturesConfig that was already set for the given script.

Parameters
script an iText.Commons.Utils.UnicodeScript? for which corresponding configuration is searched.
Returns
the IFeaturesConfig for the given iText.Commons.Utils.UnicodeScript? , or null if no configuration was set.