Documents for PDF, .NET Edition Documentation
FromStream(Stream,String,Int32) Method

GrapeCity.Documents.Common Assembly > GrapeCity.Documents.Text Namespace > Font Class > FromStream Method : FromStream(Stream,String,Int32) Method
The stream containing the font data.
The full font name to be loaded.
The number of bytes to read from the stream; -1 causes reading till the end of stream.
Loads a Font with given full font name from a specified stream.
Syntax
'Declaration
 
Public Overloads Shared Function FromStream( _
   ByVal stream As System.IO.Stream, _
   ByVal fullFontName As System.String, _
   Optional ByVal bytesToRead As System.Integer _
) As Font
public static Font FromStream( 
   System.IO.Stream stream,
   System.string fullFontName,
   System.int bytesToRead
)

Parameters

stream
The stream containing the font data.
fullFontName
The full font name to be loaded.
bytesToRead
The number of bytes to read from the stream; -1 causes reading till the end of stream.

Return Value

The newly created font.
See Also

Reference

Font Class
Font Members
Overload List