• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • SixLabors.Fonts
      • ColorFontSupport
      • Font
      • FontCollection
      • FontCollectionExtensions
      • FontDescription
      • FontException
      • FontFamily
      • FontFamilyNotFoundException
      • FontMetrics
      • FontRectangle
      • FontStyle
      • Glyph
      • GlyphBounds
      • GlyphColor
      • GlyphMetrics
      • GlyphMissingException
      • GlyphRendererParameters
      • GlyphType
      • HintingMode
      • HorizontalAlignment
      • IColorGlyphRenderer
      • IFontCollection
      • IGlyphDecorationRenderer
      • IGlyphRenderer
      • IGlyphRendererExtensions
      • InvalidFontFileException
      • InvalidFontTableException
      • IReadOnlyFontCollection
      • IReadOnlySystemFontCollection
      • KerningMode
      • LayoutMode
      • MissingFontTableException
      • SystemFonts
      • TextAlignment
      • TextAttributes
      • TextDecorations
      • TextDirection
      • TextJustification
      • TextMeasurer
      • TextOptions
      • TextRenderer
      • TextRun
      • VerticalAlignment
      • WordBreaking
    • SixLabors.Fonts.Tables.AdvancedTypographic
      • FeatureTags
      • GlyphClassDef
      • Tag
    • SixLabors.Fonts.Tables.TrueType
      • TrueTypeGlyphMetrics
    • SixLabors.Fonts.Tables.TrueType.Glyphs
      • GlyphOutline
    • SixLabors.Fonts.Unicode
      • BidiCharacterType
      • BidiClass
      • BidiPairedBracketType
      • CodePoint
      • GraphemeClusterClass
      • JoiningClass
      • JoiningGroup
      • JoiningType
      • LineBreakClass
      • MemoryExtensions
      • ScriptClass
      • SpanCodePointEnumerator
      • SpanGraphemeEnumerator
    • SixLabors.Fonts.WellKnownIds
      • KnownNameIds

    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
    IGlyphRenderer.BeginFigure()
    IGlyphRenderer.MoveTo(Vector2)
    IGlyphRenderer.QuadraticBezierTo(Vector2, Vector2)
    IGlyphRenderer.CubicBezierTo(Vector2, Vector2, Vector2)
    IGlyphRenderer.LineTo(Vector2)
    IGlyphRenderer.EndFigure()
    IGlyphRenderer.EndGlyph()
    IGlyphRenderer.BeginGlyph(FontRectangle, GlyphRendererParameters)
    IGlyphRenderer.EndText()
    IGlyphRenderer.BeginText(FontRectangle)
    Namespace: SixLabors.Fonts
    Assembly: SixLabors.Fonts.dll
    Syntax
    public interface IGlyphDecorationRenderer : IGlyphRenderer

    Methods

    | Improve this Doc View Source

    EnabledDecorations()

    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.

    | Improve this Doc View Source

    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.

    Extension Methods

    IGlyphRendererExtensions.Render(IGlyphRenderer, ReadOnlySpan<Char>, TextOptions)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX