Interface IGlyphDecorationRenderer
A surface that can have a glyph rendered to it as a series of actions with the options of providing glyph decoration details.
Inherited Members
Namespace: SixLabors.Fonts
Assembly: SixLabors.Fonts.dll
Syntax
public interface IGlyphDecorationRenderer : IGlyphRenderer
Methods
| Improve this Doc View SourceEnabledDecorations()
Provides a callback to enable custom logic to request decoration details. a custom TextRun might use alternative triggers to determine what decorations it needs access to.
Declaration
TextDecorations EnabledDecorations()
Returns
Type | Description |
---|---|
TextDecorations | The text decorations the render wants render info for. |
SetDecoration(TextDecorations, Vector2, Vector2, Single)
Provides the positions required for drawing text decorations onto the IGlyphRenderer
Declaration
void SetDecoration(TextDecorations textDecorations, Vector2 start, Vector2 end, float thickness)
Parameters
Type | Name | Description |
---|---|---|
TextDecorations | textDecorations | The type of decoration these details correspond to. |
Vector2 | start | The start position from where to draw the decorations from. |
Vector2 | end | The end position from where to draw the decorations to. |
Single | thickness | The thickness to draw the decoration. |