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

An IFeaturesConfig implementation for convenient configuration of any standard script. More...

Inheritance diagram for iText.Typography.Config.StandardScriptConfig:
iText.Typography.Config.IFeaturesConfig iText.Typography.Config.LatinScriptConfig

Public Member Functions

  StandardScriptConfig (ICollection< UnicodeScript > scripts)
 
virtual ICollection< UnicodeScript >  GetScripts ()
  Gets scripts that are affected by this instance of IFeaturesConfig. More...
 
virtual iText.Typography.Config.StandardScriptConfig  SetLigaturesApplying (bool enabled)
  Enables or disables standard ligatures substitution. More...
 
virtual iText.Typography.Config.StandardScriptConfig  SetCharacterCompositionDecompositionSubstitution (bool enabled)
  Enables or disables characters composition/decomposition substitution. More...
 
virtual iText.Typography.Config.StandardScriptConfig  SetKerningFeature (bool enabled)
  Enables or disables pair kerning. More...
 
virtual iText.Typography.Config.StandardScriptConfig  SetDistancesAdjustment (bool enabled)
  Enables or disables distance adjustment. More...
 
virtual iText.Typography.Config.StandardScriptConfig  SetMarkToBasePositioning (bool enabled)
  Enables or disables mark to base positioning. More...
 
virtual iText.Typography.Config.StandardScriptConfig  SetMarkToMarkPositioning (bool enabled)
  Enables or disables mark to mark positioning. More...
 
virtual iText.Typography.Config.StandardScriptConfig  AppendCustomFeature (String feature)
  Adds a custom feature to the end of the list of features that are to be applied. More...
 
virtual iText.Typography.Config.StandardScriptConfig  PrependCustomFeature (String feature)
  Adds a custom feature to the beginning of the list of features that are to be applied. More...
 
virtual iText.Typography.Config.StandardScriptConfig  RemoveCustomFeature (String feature)
  Removes custom feature added to the features list via AppendCustomFeature(System.String) or PrependCustomFeature(System.String). More...
 
virtual IList< String >  ListFeatures ()
  Enlists OpenType features that are applied in given order to the scripts defined by GetScripts(). More...
 

Static Public Attributes

static readonly ICollection< UnicodeScript >  STANDARD_SCRIPTS
 

Detailed Description

An IFeaturesConfig implementation for convenient configuration of any standard script.

An IFeaturesConfig implementation for convenient configuration of any standard script.

Standard Script - any non-complex script; any script that does not require re-ordering or contextual analysis in the shaping process. According to Open Font File specification such scripts are iText.Commons.Utils.UnicodeScript?.ARMENIAN , iText.Commons.Utils.UnicodeScript?.CYRILLIC , iText.Commons.Utils.UnicodeScript?.GEORGIAN , iText.Commons.Utils.UnicodeScript?.GREEK , iText.Commons.Utils.UnicodeScript?.LATIN , iText.Commons.Utils.UnicodeScript?.RUNIC , iText.Commons.Utils.UnicodeScript?.OGHAM.

See also STANDARD_SCRIPTS set.

Developing OpenType Fonts for Standard Scripts at docs.microsoft.com

Member Function Documentation

◆ AppendCustomFeature()

virtual iText.Typography.Config.StandardScriptConfig iText.Typography.Config.StandardScriptConfig.AppendCustomFeature ( String  feature )
inlinevirtual

Adds a custom feature to the end of the list of features that are to be applied.

Adds a custom feature to the end of the list of features that are to be applied.

See also IFeaturesConfig.ListFeatures()

Parameters
feature the feature tag denoting feature in the font.
Returns
this StandardScriptConfig instance.

◆ GetScripts()

virtual ICollection iText.Typography.Config.StandardScriptConfig.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.StandardScriptConfig.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.

◆ PrependCustomFeature()

virtual iText.Typography.Config.StandardScriptConfig iText.Typography.Config.StandardScriptConfig.PrependCustomFeature ( String  feature )
inlinevirtual

Adds a custom feature to the beginning of the list of features that are to be applied.

Adds a custom feature to the beginning of the list of features that are to be applied.

See also IFeaturesConfig.ListFeatures()

Parameters
feature the feature tag denoting feature in the font.
Returns
this StandardScriptConfig instance.

◆ RemoveCustomFeature()

virtual iText.Typography.Config.StandardScriptConfig iText.Typography.Config.StandardScriptConfig.RemoveCustomFeature ( String  feature )
inlinevirtual

Removes custom feature added to the features list via AppendCustomFeature(System.String) or PrependCustomFeature(System.String).

Removes custom feature added to the features list via AppendCustomFeature(System.String) or PrependCustomFeature(System.String).

See also IFeaturesConfig.ListFeatures()

Parameters
feature the feature tag denoting feature in the font.
Returns
this StandardScriptConfig instance.

◆ SetCharacterCompositionDecompositionSubstitution()

virtual iText.Typography.Config.StandardScriptConfig iText.Typography.Config.StandardScriptConfig.SetCharacterCompositionDecompositionSubstitution ( bool  enabled )
inlinevirtual

Enables or disables characters composition/decomposition substitution.

Enables or disables characters composition/decomposition substitution.

If enabled the "ccmp" feature tag will be present in the list of features to be applied (see IFeaturesConfig.ListFeatures() ). It will appear after custom features added by PrependCustomFeature(System.String) (if any) and before custom features added by AppendCustomFeature(System.String) (if any). The order of not custom features is fixed and defined by the Open Font File specification.

By default it's disabled.

Parameters
enabled

true in order to enable the feature, otherwise false.

Returns
this StandardScriptConfig instance.

◆ SetDistancesAdjustment()

virtual iText.Typography.Config.StandardScriptConfig iText.Typography.Config.StandardScriptConfig.SetDistancesAdjustment ( bool  enabled )
inlinevirtual

Enables or disables distance adjustment.

Enables or disables distance adjustment.

If enabled the "dist" feature tag will be present in the list of features to be applied (see IFeaturesConfig.ListFeatures() ). It will appear after custom features added by PrependCustomFeature(System.String) (if any) and before custom features added by AppendCustomFeature(System.String) (if any). The order of not custom features is fixed and defined by the Open Font File specification.

By default it's disabled.

Parameters
enabled

true in order to enable the feature, false

  • to disable.
Returns
this StandardScriptConfig instance.

◆ SetKerningFeature()

virtual iText.Typography.Config.StandardScriptConfig iText.Typography.Config.StandardScriptConfig.SetKerningFeature ( bool  enabled )
inlinevirtual

Enables or disables pair kerning.

Enables or disables pair kerning.

If enabled the "kern" feature tag will be present in the list of features to be applied (see IFeaturesConfig.ListFeatures() ). It will appear after custom features added by PrependCustomFeature(System.String) (if any) and before custom features added by AppendCustomFeature(System.String) (if any). The order of not custom features is fixed and defined by the Open Font File specification.

By default it's disabled.

Parameters
enabled

true in order to enable the feature, false

  • to disable.
Returns
this StandardScriptConfig instance.

◆ SetLigaturesApplying()

virtual iText.Typography.Config.StandardScriptConfig iText.Typography.Config.StandardScriptConfig.SetLigaturesApplying ( bool  enabled )
inlinevirtual

Enables or disables standard ligatures substitution.

Enables or disables standard ligatures substitution.

If enabled the "liga" feature tag will be present in the list of features to be applied (see IFeaturesConfig.ListFeatures() ). It will appear after custom features added by PrependCustomFeature(System.String) (if any) and before custom features added by AppendCustomFeature(System.String) (if any). The order of not custom features is fixed and defined by the Open Font File specification.

By default it's disabled.

Parameters
enabled

true in order to enable the feature, otherwise false.

Returns
this StandardScriptConfig instance.

◆ SetMarkToBasePositioning()

virtual iText.Typography.Config.StandardScriptConfig iText.Typography.Config.StandardScriptConfig.SetMarkToBasePositioning ( bool  enabled )
inlinevirtual

Enables or disables mark to base positioning.

Enables or disables mark to base positioning. It's usually used for combining diacritics with the base glyphs.

If enabled the "liga" feature tag will be present in the list of features to be applied (see IFeaturesConfig.ListFeatures() ). It will appear after custom features added by PrependCustomFeature(System.String) (if any) and before custom features added by AppendCustomFeature(System.String) (if any). The order of not custom features is fixed and defined by the Open Font File specification.

By default it's enabled.

Parameters
enabled

true in order to enable the feature, false

  • to disable.
Returns
this StandardScriptConfig instance.

◆ SetMarkToMarkPositioning()

virtual iText.Typography.Config.StandardScriptConfig iText.Typography.Config.StandardScriptConfig.SetMarkToMarkPositioning ( bool  enabled )
inlinevirtual

Enables or disables mark to mark positioning.

Enables or disables mark to mark positioning. It's usually used for combining diacritics with other diacritics.

If enabled the "liga" feature tag will be present in the list of features to be applied (see IFeaturesConfig.ListFeatures() ). It will appear after custom features added by PrependCustomFeature(System.String) (if any) and before custom features added by AppendCustomFeature(System.String) (if any). The order of not custom features is fixed and defined by the Open Font File specification.

By default it's enabled.

Parameters
enabled

true in order to enable the feature, false

  • to disable.
Returns
this StandardScriptConfig instance.

Member Data Documentation

◆ STANDARD_SCRIPTS

readonly ICollection iText.Typography.Config.StandardScriptConfig.STANDARD_SCRIPTS
static
Initial value:
= JavaCollectionsUtil.UnmodifiableSet(new
LinkedHashSet(JavaUtil.ArraysAsList(UnicodeScript.ARMENIAN, UnicodeScript.CYRILLIC, UnicodeScript
.GEORGIAN, UnicodeScript.GREEK, UnicodeScript.LATIN, UnicodeScript.RUNIC, UnicodeScript.OGHAM)))