GxFont.CreateFromStream

Syntax

CreateFromStream(Stream: IIOStream);

Parameters

Stream. Stream.

Description

The CreateFromStream constructor creates a font from the stream.

Example

Function GetFontFromStream(FontStream: IIOStream): IGxFont;
Var
    OutFont: IGxFont;
Begin
    If FontStream.Size <> 0 Then
        OutFont := New GxFont.CreateFromStream(FontStream);
        Return OutFont;
    Else
        Return Null;
    End If;
End Function GetFontFromStream;

The specified procedure returns the font loaded from the stream.

See also:

GxFont