Class TextBuilder
Text drawing extensions for a PathBuilder
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public static class TextBuilder
Methods
| Improve this Doc View SourceGenerateGlyphs(String, PointF, RendererOptions)
Generates the shapes corresponding the glyphs described by the font and with the settings withing the FontSpan
Declaration
public static IPathCollection GenerateGlyphs(string text, PointF location, RendererOptions style)
Parameters
Type | Name | Description |
---|---|---|
String | text | The text to generate glyphs for |
PointF | location | The location |
RendererOptions | style | The style and settings to use while rendering the glyphs |
Returns
Type | Description |
---|---|
IPathCollection | The IPathCollection |
GenerateGlyphs(String, RendererOptions)
Generates the shapes corresponding the glyphs described by the font and with the settings withing the FontSpan
Declaration
public static IPathCollection GenerateGlyphs(string text, RendererOptions style)
Parameters
Type | Name | Description |
---|---|---|
String | text | The text to generate glyphs for |
RendererOptions | style | The style and settings to use while rendering the glyphs |
Returns
Type | Description |
---|---|
IPathCollection | The IPathCollection |
GenerateGlyphs(String, IPath, RendererOptions)
Generates the shapes corresponding the glyphs described by the font and with the setting in within the FontSpan along the described path.
Declaration
public static IPathCollection GenerateGlyphs(string text, IPath path, RendererOptions style)
Parameters
Type | Name | Description |
---|---|---|
String | text | The text to generate glyphs for |
IPath | path | The path to draw the text in relation to |
RendererOptions | style | The style and settings to use while rendering the glyphs |
Returns
Type | Description |
---|---|
IPathCollection | The IPathCollection |