PeachDrawing.Text
PeachDrawing.Text.Shaping.Shaper
Shaper.Shape(Typeface, string, ShapeSettings) Method
Shapes a run of text in one face.
public static PeachDrawing.Text.Shaping.GlyphRun Shape(PeachDrawing.Text.Typeface typeface, string text, in PeachDrawing.Text.Shaping.ShapeSettings settings);
Parameters
typeface Typeface
The face to shape in.
text System.String
The text, in logical order unless the settings ask for the result in visual order.
settings ShapeSettings
What to apply; Default for the defaults.
Returns
GlyphRun
The glyphs, in the order they are drawn.
Exceptions
System.ArgumentException
An explicit feature has no tag.
Remarks
The text is shaped as the one run it is: everything the settings ask for applies to all of it. A variation selector, and another invisible character the font has no glyph for, is removed from the result after it has taken part in substitution and positioning.