Table of Contents

Class TextSvgBranchRenderer

Namespace
iText.Svg.Renderers.Impl
Assembly
itext.svg.dll

ISvgNodeRenderer implementation for the <text> and <tspan> tag.

public class TextSvgBranchRenderer : AbstractSvgNodeRenderer, ISvgTextNodeRenderer, ISvgNodeRenderer
Inheritance
TextSvgBranchRenderer
Implements
Derived
Inherited Members

Constructors

TextSvgBranchRenderer()

public TextSvgBranchRenderer()

Fields

TEXTFLIP

Top level transformation to flip the y-axis results in the character glyphs being mirrored, this tf corrects for this behaviour

protected static readonly AffineTransform TEXTFLIP

Field Value

AffineTransform

performRootTransformations

protected bool performRootTransformations

Field Value

bool

Methods

AddChild(ISvgTextNodeRenderer)

public void AddChild(ISvgTextNodeRenderer child)

Parameters

child ISvgTextNodeRenderer

ContainsAbsolutePositionChange()

public virtual bool ContainsAbsolutePositionChange()

Returns

bool

ContainsRelativeMove()

public virtual bool ContainsRelativeMove()

Returns

bool

CreateDeepCopy()

public override ISvgNodeRenderer CreateDeepCopy()

Returns

ISvgNodeRenderer

DoDraw(SvgDrawContext)

Method that will set properties to be inherited by this branch renderer's children and will iterate over all children in order to draw them.

protected override void DoDraw(SvgDrawContext context)

Parameters

context SvgDrawContext

the object that knows the place to draw this element and maintains its state

GetAbsolutePositionChanges()

public virtual float[][] GetAbsolutePositionChanges()

Returns

float[][]

GetChildren()

public IList<ISvgTextNodeRenderer> GetChildren()

Returns

IList<ISvgTextNodeRenderer>

GetObjectBoundingBox(SvgDrawContext)

public override Rectangle GetObjectBoundingBox(SvgDrawContext context)

Parameters

context SvgDrawContext

Returns

Rectangle

GetRelativeTranslation()

public virtual float[] GetRelativeTranslation()

Returns

float[]

GetTextContentLength(float, PdfFont)

public virtual float GetTextContentLength(float parentFontSize, PdfFont font)

Parameters

parentFontSize float
font PdfFont

Returns

float

GetTextRectangle(SvgDrawContext, Point)

public virtual TextRectangle GetTextRectangle(SvgDrawContext context, Point basePoint)

Parameters

context SvgDrawContext
basePoint Point

Returns

TextRectangle

MarkWhiteSpaceProcessed()

public virtual void MarkWhiteSpaceProcessed()