ShapeText

ITextShaper.ShapeText method

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.

public Cluster[][] ShapeText(string[] runs, Direction direction, UnicodeScript script, 
    FontFeature[] enabledFontFeatures, VariationAxisCoordinate[] variations)
ParameterTypeDescription
runsString[]A sequence of text fragments
directionDirectionA direction of text
scriptUnicodeScriptA script
enabledFontFeaturesFontFeature[]A set of explicitly enabled OpenType features to consider
variationsVariationAxisCoordinate[]Font’s variation axis values

See Also