Document Solutions for PDF
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Text Namespace / FontCollection Class / LoadFonts Method / LoadFonts(Stream,Int32,Boolean) Method
The stream containing the font data.
The number of bytes to read from the stream; -1 causes reading till the end of stream.
Specifies if all the registered fonts should be added to the fallback font collection.

In This Topic
    LoadFonts(Stream,Int32,Boolean) Method
    In This Topic
    Loads all fonts from the specified stream into the collection.

    Use the RegisterFont method if there is a font file.

    Syntax
    'Declaration
     
    Public Overloads Function LoadFonts( _
       ByVal stream As System.IO.Stream, _
       Optional ByVal bytesToRead As System.Integer, _
       Optional ByVal addToFallbacks As System.Boolean _
    ) As System.Integer
    public System.int LoadFonts( 
       System.IO.Stream stream,
       System.int bytesToRead,
       System.bool addToFallbacks
    )

    Parameters

    stream
    The stream containing the font data.
    bytesToRead
    The number of bytes to read from the stream; -1 causes reading till the end of stream.
    addToFallbacks
    Specifies if all the registered fonts should be added to the fallback font collection.

    Return Value

    The number of loaded fonts.
    See Also