Table of Contents

Method MeasureWidth

Namespace
OpenCAD2D.Wpf
Assembly
OpenCAD2D.Rendering.dll

MeasureWidth(string, bool, bool, string)

Measures letters as the canvas draws them, for MeasureWidth: the width of the letters one unit high in the family's face, bold or italic, the canvas's own font (Arial) for none.

public static double MeasureWidth(string family, bool bold, bool italic, string text)

Parameters

family string

The family, or a font file.

bold bool

Whether bold.

italic bool

Whether italic.

text string

The letters.

Returns

double

The width.