Table of Contents

Class WpfTextRenderer

Namespace
SharpVectors.Renderers.Texts
Assembly
SharpVectors.Rendering.Wpf.dll
public abstract class WpfTextRenderer : WpfRendererObject, IDisposable
Inheritance
WpfTextRenderer
Implements
Derived
Inherited Members

Constructors

WpfTextRenderer(SvgTextBaseElement, WpfTextRendering)

Fields

NonBreaking
NonBreakingChar
Whitespace
_actualFontName
_decimalNumber
_drawContext
_multipleSpaces
_tabNewline
_textElement
_textRendering

Properties

DrawContext
IsInitialized
IsMeasuring
IsTextPath
TextContext
TextCulture
TextElement
TextWidth

Methods

AddTextWidth(Point, double)
Dispose(bool)
DrawGeometryWithPaintOrder(SvgTextContentElement, Brush, Pen, Geometry)

Draws geometry respecting the paint-order CSS property.

For text rendering with paint-order support, this method creates separate drawings when stroke-first rendering is needed, instead of using the standard DrawContext.DrawGeometry which applies fill then stroke.

ExtractTextPathGeometry(Geometry)

This will extract a PathGeometry that is nested into GeometryGroup, which is normally created by the FormattedText.BuildGeometry() method.

GetBolderFontWeight(string)

Resolves one step heavier font-weight from a given parent font-weight value.

GetBrush()
GetComputedFontSize(SvgTextContentElement)
GetLighterFontWeight(string)

Resolves one step lighter font-weight from a given parent font-weight value.

GetPen()
GetText(SvgAltGlyphElement)
GetText(SvgTRefElement)
GetText(SvgTextContentElement, XmlNode, XmlNode)
GetTextDecoration(SvgTextContentElement)
GetTextFontFamily(SvgTextContentElement)
GetTextFontFamilyInfo(SvgTextContentElement)
GetTextFontStretch(SvgTextContentElement)
GetTextFontStyle(SvgTextContentElement)
GetTextFontStyle(string)
GetTextFontWeight(SvgTextContentElement)

Resolves the font-weight property of an SVG text element, with support for relative keywords and parent-relative adjustments.

GetTextFontWeight(string)

Resolves a CSS font-weight string to a WPF FontWeight.

GetTextStringFormat(SvgTextContentElement)
Initialize(DrawingContext, WpfDrawingContext)
RenderText(SvgTextContentElement, ref Point, string, double, WpfTextPlacement)
RenderTextRun(SvgTextContentElement, ref Point, string, double, WpfTextPlacement)
SetElement(SvgTextBaseElement)
SetTextWidth(double)
TrimText(SvgTextContentElement, string)
Uninitialize()