FontData

Overview

FontData is a class in Aspose.PDF FOSS for .NET.

Represents a font with its name and type.

This class provides 1 method for working with FontData objects in .NET programs. Available methods include: MeasureString. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: FilePath, FontName, Type.

Properties

NameTypeAccessDescription
FontNamestringReadThe font name.
TypeFontTypeReadThe font type.
FilePathstring?ReadFile path if loaded from a file.

Methods

SignatureDescription
MeasureString(text: string, fontSize: double)Measure the width of a string at the given font size in points.

See Also