Class TextBuilder
Provides mechanisms for building IPathCollection instances from text strings.
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public static class TextBuilder
Methods
| Edit this page View SourceGenerateGlyphs(string, TextOptions)
Generates the shapes corresponding the glyphs described by the text options.
Declaration
public static IPathCollection GenerateGlyphs(string text, TextOptions textOptions)
Parameters
Type | Name | Description |
---|---|---|
string | text | The text to generate glyphs for. |
TextOptions | textOptions | The text rendering options. |
Returns
Type | Description |
---|---|
IPathCollection | The IPathCollection |
GenerateGlyphs(string, IPath, TextOptions)
Generates the shapes corresponding the glyphs described by the text options along the described path.
Declaration
public static IPathCollection GenerateGlyphs(string text, IPath path, TextOptions textOptions)
Parameters
Type | Name | Description |
---|---|---|
string | text | The text to generate glyphs for |
IPath | path | The path to draw the text in relation to |
TextOptions | textOptions | The text rendering options. |
Returns
Type | Description |
---|---|
IPathCollection | The IPathCollection |