Method TrueType

Namespace TallComponents.PDF.Layout.Fonts
Class Font

Get a TrueType font from a TrueType collection stream.

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.

The may be closed when the constructor completes. It is the responsibility of the client to close the stream.

Note that this functionality is available in the Professional edition only.

Syntax

public  Font  TrueType( Stream  stream String  fontName )

Returns

Font

The created font.

Parameters


Stream stream
Stream containing TrueType collection font data.

String fontName
Name (case-insensitive) of the TrueType font inside the collection.