• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • SixLabors.Fonts
      • ColorFontSupport
      • Font
      • FontCollection
      • FontDescription
      • FontFamily
      • FontFamilyCollectionExtensions
      • FontInstance
      • FontRectangle
      • FontStyle
      • Glyph
      • GlyphColor
      • GlyphInstance
      • GlyphMetric
      • GlyphRendererParameters
      • GlyphType
      • HorizontalAlignment
      • IColorGlyphRenderer
      • IFontCollection
      • IFontInstance
      • IGlyphRenderer
      • IGlyphRendererExtensions
      • IReadOnlyFontCollection
      • IReadonlyFontCollectionExtensions
      • RendererOptions
      • SystemFonts
      • TextMeasurer
      • TextRenderer
      • VerticalAlignment
    • SixLabors.Fonts.Exceptions
      • FontException
      • FontFamilyNotFoundException
      • GlyphMissingException
      • InvalidFontFileException
      • InvalidFontTableException
      • MissingFontTableException

    Class TextRenderer

    Encapulated 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>, RendererOptions)

    Renders the text.

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

    The text.

    RendererOptions options

    The style.

    | Improve this Doc View Source

    RenderText(String, RendererOptions)

    Renders the text.

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

    The text.

    RendererOptions options

    The style.

    | Improve this Doc View Source

    RenderTextTo(IGlyphRenderer, ReadOnlySpan<Char>, RendererOptions)

    Renders the text to the renderer.

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

    The target renderer.

    ReadOnlySpan<Char> text

    The text.

    RendererOptions options

    The style.

    | Improve this Doc View Source

    RenderTextTo(IGlyphRenderer, String, RendererOptions)

    Renders the text to the renderer.

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

    The target renderer.

    String text

    The text.

    RendererOptions options

    The style.

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