Table of Contents

Class SvgFontDefn

Namespace
Svg
Assembly
Svg.dll
public class SvgFontDefn : IFontDefn, IDisposable
Inheritance
SvgFontDefn
Implements
Inherited Members

Constructors

SvgFontDefn(SvgFont, float, float)

public SvgFontDefn(SvgFont font, float size, float ppi)

Parameters

font SvgFont
size float
ppi float

Properties

Size

public float Size { get; }

Property Value

float

SizeInPoints

public float SizeInPoints { get; }

Property Value

float

Methods

AddStringToPath(ISvgRenderer, GraphicsPath, string, PointF)

public void AddStringToPath(ISvgRenderer renderer, GraphicsPath path, string text, PointF location)

Parameters

renderer ISvgRenderer
path GraphicsPath
text string
location PointF

Ascent(ISvgRenderer)

public float Ascent(ISvgRenderer renderer)

Parameters

renderer ISvgRenderer

Returns

float

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

MeasureCharacters(ISvgRenderer, string)

public IList<RectangleF> MeasureCharacters(ISvgRenderer renderer, string text)

Parameters

renderer ISvgRenderer
text string

Returns

IList<RectangleF>

MeasureString(ISvgRenderer, string)

public SizeF MeasureString(ISvgRenderer renderer, string text)

Parameters

renderer ISvgRenderer
text string

Returns

SizeF