• 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
      • GlyphLayoutMode
      • GlyphMetrics
      • GlyphMissingException
      • GlyphRendererParameters
      • GlyphType
      • HintingMode
      • HorizontalAlignment
      • HorizontalMetrics
      • IColorGlyphRenderer
      • IFontCollection
      • IGlyphRenderer
      • IGlyphRendererExtensions
      • IMetricsHeader
      • IReadOnlyFontCollection
      • IReadOnlySystemFontCollection
      • InvalidFontFileException
      • InvalidFontTableException
      • KerningMode
      • LayoutMode
      • LayoutModeExtensions
      • MissingFontTableException
      • SystemFonts
      • TextAlignment
      • TextAttributes
      • TextDecorations
      • TextDirection
      • TextJustification
      • TextMeasurer
      • TextOptions
      • TextRenderer
      • TextRun
      • VerticalAlignment
      • VerticalMetrics
      • WordBreaking
    • SixLabors.Fonts.Tables.AdvancedTypographic
      • FeatureTags
      • GlyphClassDef
      • Tag
    • SixLabors.Fonts.Tables.TrueType
      • TrueTypeGlyphMetrics
    • SixLabors.Fonts.Unicode
      • ArabicJoiningClass
      • ArabicJoiningGroup
      • ArabicJoiningType
      • BidiCharacterType
      • BidiClass
      • BidiPairedBracketType
      • CodePoint
      • GraphemeClusterClass
      • IndicPositionalCategory
      • IndicSyllabicCategory
      • LineBreakClass
      • MemoryExtensions
      • ScriptClass
      • SpanCodePointEnumerator
      • SpanGraphemeEnumerator
      • VerticalOrientationType
    • 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

    | Edit this page 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

    | Edit this page View Source

    RenderText(ReadOnlySpan<char>, TextOptions)

    Renders the text to the default renderer.

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

    The text to render.

    TextOptions options

    The style.

    | Edit this page View Source

    RenderText(string, TextOptions)

    Renders the text to the default renderer.

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

    The text to render.

    TextOptions options

    The text options.

    | Edit this page 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 to render.

    TextOptions options

    The text options.

    | Edit this page 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 to render.

    TextOptions options

    The text option.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX