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]):
...
Parameter | Type | Description |
---|---|---|
runs | List[str] | A sequence of text fragments |
direction | Direction | A direction of text |
script | UnicodeScript | A script |
enabled_font_features | List[FontFeature] | A set of explicitly enabled OpenType features to consider |
variations | List[VariationAxisCoordinate] | Font’s variation axis values |
See Also
- module aspose.words.shaping
- class ITextShaper