Get a TrueType font from a TrueType collection (.TTC) file.
Namespace: TallComponents.PDF.Layout.FontsAssembly: TallComponents.PDF.Layout (in TallComponents.PDF.Layout.dll) Version: 3.0.63.0
Syntax
| C# |
|---|
public static Font TrueType( string path, string fontName ) |
| Visual Basic |
|---|
Public Shared Function TrueType ( _ path As String, _ fontName As String _ ) As Font |
Parameters
- path
- Type: System..::..String
Relative or absolute path to TrueType collection file.
- fontName
- Type: System..::..String
Name (case-insensitive) of the TrueType font inside the collection.
Return Value
Remarks
To specifiy a TrueType font in XML use the font attribute and assign a value equal to the concatenation of the TrueType collection path and the font name, separated by a question mark.