shape_text method

shape_text(runs, direction, script, enabled_font_features, variations)

Returns Cluster objects generated from a sequence of text fragments. Length of the returned array is equal to length of runs. If run at an index has corresponding clusters then result at the same index will have them recorded.

def shape_text(self, runs: List[str], direction: aspose.words.shaping.Direction, script: aspose.words.shaping.UnicodeScript, enabled_font_features: List[aspose.words.shaping.FontFeature], variations: List[aspose.words.shaping.VariationAxisCoordinate]):
    ...
ParameterTypeDescription
runsList[str]A sequence of text fragments
directionDirectionA direction of text
scriptUnicodeScriptA script
enabled_font_featuresList[FontFeature]A set of explicitly enabled OpenType features to consider
variationsList[VariationAxisCoordinate]Font’s variation axis values

See Also