Parameters
- fontStream
- The stream containing the font program data.
Return Value
The PostScript names of the font.
| Exception | Description |
|---|---|
| System.ArgumentNullException | Thrown if fontStream is null. |
| System.ArgumentException | Thrown if fontStream is too short to contain a valid font program. |
In case of usual TTF or OTF fonts, this method returns an array containing one element; if stream contains a TrueType font collection (usually files with ".ttc" extension) then names of all fonts in the collection will be returned.
Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5