CollectionFromStream Method
Loads all
Fonts from a specified stream containing single font or a font collection.
public static System.int CollectionFromStream(
System.IO.Stream ,
System.Collections.Generic.List<Font> ,
System.int ,
System.bool
)
'Declaration
Public Shared Function CollectionFromStream( _
ByVal As System.IO.Stream, _
ByVal As System.Collections.Generic.List(Of Font), _
Optional ByVal As System.Integer, _
Optional ByVal As System.Boolean _
) As System.Integer
Parameters
- stream
- The stream containing the font data.
- fonts
- The destination list of fonts. It must be initialized beforehand.
- bytesToRead
- The number of bytes to read from the stream; -1 causes reading till the end of stream.
- initCodeMap
- Set this parameter to True if you're planning to add the loaded fonts to the fallback font collection.
Return Value
The number of loaded fonts.