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
| Name | Type | Access | Description |
|---|---|---|---|
FontName | string | Read | The font name. |
Type | FontType | Read | The font type. |
FilePath | string? | Read | File path if loaded from a file. |
Methods
| Signature | Description |
|---|---|
MeasureString(text: string, fontSize: double) | Measure the width of a string at the given font size in points. |