MeasureWidth(ReadOnlySpan, Double) Method

Definition

Namespace Broadside.Fonts
Assembly Broadside.dll

Measures the advance of text shown at fontSize without kerning: the sum of its glyph widths.

public double MeasureWidth(ReadOnlySpan<char> text, double fontSize)

Parameters

text
ReadOnlySpan<Char>

The text.

fontSize
Double

The font size (Tf's size operand).

Returns

Double
The advance in unscaled text space units, without character spacing, word spacing or horizontal scaling.

Remarks

ISO 32000-2 §9.2.4 and §9.4.4, as MeasureWidth(ReadOnlySpan<Char>, Double, Boolean) without kerning.