• 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 IGlyphRenderer

    A surface that can have a glyph rendered to it as a series of actions.

    Namespace: SixLabors.Fonts
    Assembly: SixLabors.Fonts.dll
    Syntax
    public interface IGlyphRenderer

    Methods

    | Improve this Doc View Source

    BeginFigure()

    Begins the figure.

    Declaration
    void BeginFigure()
    | Improve this Doc View Source

    BeginGlyph(FontRectangle, GlyphRendererParameters)

    Begins the glyph.

    Declaration
    bool BeginGlyph(FontRectangle bounds, GlyphRendererParameters parameters)
    Parameters
    Type Name Description
    FontRectangle bounds

    The bounds the glyph will be rendered at and at what size.

    GlyphRendererParameters parameters

    The set of parameters that uniquely represents a version of a glyph in at particular font size, font family, font style and DPI.

    Returns
    Type Description
    Boolean

    Returns true if the glyph should be rendered otherwise it returns false.

    | Improve this Doc View Source

    BeginText(FontRectangle)

    Called before any glyphs have been rendered.

    Declaration
    void BeginText(FontRectangle bounds)
    Parameters
    Type Name Description
    FontRectangle bounds

    The bounds the text will be rendered at and at whats size.

    | Improve this Doc View Source

    CubicBezierTo(Vector2, Vector2, Vector2)

    Draw a cubic bezier curve connecting the previous point to point.

    Declaration
    void CubicBezierTo(Vector2 secondControlPoint, Vector2 thirdControlPoint, Vector2 point)
    Parameters
    Type Name Description
    Vector2 secondControlPoint

    The second control point.

    Vector2 thirdControlPoint

    The third control point.

    Vector2 point

    The point.

    | Improve this Doc View Source

    EndFigure()

    Ends the figure.

    Declaration
    void EndFigure()
    | Improve this Doc View Source

    EndGlyph()

    Ends the glyph.

    Declaration
    void EndGlyph()
    | Improve this Doc View Source

    EndText()

    Called once all glyphs have completed rendering.

    Declaration
    void EndText()
    | Improve this Doc View Source

    LineTo(Vector2)

    Draw a straight line connecting the previous point to point.

    Declaration
    void LineTo(Vector2 point)
    Parameters
    Type Name Description
    Vector2 point

    The point.

    | Improve this Doc View Source

    MoveTo(Vector2)

    Sets a new start point to draw lines from.

    Declaration
    void MoveTo(Vector2 point)
    Parameters
    Type Name Description
    Vector2 point

    The point.

    | Improve this Doc View Source

    QuadraticBezierTo(Vector2, Vector2)

    Draw a quadratic bezier curve connecting the previous point to point.

    Declaration
    void QuadraticBezierTo(Vector2 secondControlPoint, Vector2 point)
    Parameters
    Type Name Description
    Vector2 secondControlPoint

    The second control point.

    Vector2 point

    The point.

    Extension Methods

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