LoadFonts(Stream,Int32,Boolean) Method
Loads all fonts from the specified stream into the collection.
Use the RegisterFont method if there is a font file.
public System.int LoadFonts(
System.IO.Stream ,
System.int ,
System.bool
)
'Declaration
Public Overloads Function LoadFonts( _
ByVal As System.IO.Stream, _
Optional ByVal As System.Integer, _
Optional ByVal As System.Boolean _
) As System.Integer
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.