Click or drag to resize
Pdftools logo

FontGetCharacterWidth Method

the width of a single glyph.

The width of a unicode character (in pt) relative to a font size of 1 pt.

If an error occurs (because the font or the owning document has already been closed) this method returns 0. But a return value of 0 is not generally an indication for failure.


Namespace: PdfTools.FourHeights.PdfToolbox.Pdf.Content
Assembly: PdfTools.FourHeights.PdfToolbox (in PdfTools.FourHeights.PdfToolbox.dll) Version: 4.4.1+cd45f416896d630bcd3719f4b2cba7920f2790da
Syntax
C#
public double GetCharacterWidth(
	int character
)

Parameters

character  Int32
the unicode character code.

Return Value

Double
the width of the character
See Also