• 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

    Class TextRenderer

    Encapsulated logic for laying out and then rendering text to a IGlyphRenderer surface.

    Inheritance
    Object
    TextRenderer
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: SixLabors.Fonts
    Assembly: SixLabors.Fonts.dll
    Syntax
    public class TextRenderer

    Constructors

    | Improve this Doc View Source

    TextRenderer(IGlyphRenderer)

    Initializes a new instance of the TextRenderer class.

    Declaration
    public TextRenderer(IGlyphRenderer renderer)
    Parameters
    Type Name Description
    IGlyphRenderer renderer

    The renderer.

    Methods

    | Improve this Doc View Source

    RenderText(ReadOnlySpan<Char>, TextOptions)

    Renders the text.

    Declaration
    public void RenderText(ReadOnlySpan<char> text, TextOptions options)
    Parameters
    Type Name Description
    ReadOnlySpan<Char> text

    The text.

    TextOptions options

    The style.

    | Improve this Doc View Source

    RenderText(String, TextOptions)

    Renders the text.

    Declaration
    public void RenderText(string text, TextOptions options)
    Parameters
    Type Name Description
    String text

    The text.

    TextOptions options

    The style.

    | Improve this Doc View Source

    RenderTextTo(IGlyphRenderer, ReadOnlySpan<Char>, TextOptions)

    Renders the text to the renderer.

    Declaration
    public static void RenderTextTo(IGlyphRenderer renderer, ReadOnlySpan<char> text, TextOptions options)
    Parameters
    Type Name Description
    IGlyphRenderer renderer

    The target renderer.

    ReadOnlySpan<Char> text

    The text.

    TextOptions options

    The style.

    | Improve this Doc View Source

    RenderTextTo(IGlyphRenderer, String, TextOptions)

    Renders the text to the renderer.

    Declaration
    public static void RenderTextTo(IGlyphRenderer renderer, string text, TextOptions options)
    Parameters
    Type Name Description
    IGlyphRenderer renderer

    The target renderer.

    String text

    The text.

    TextOptions options

    The style.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX