DS.Documents.Imaging Assembly / GrapeCity.Documents.Text Namespace / FontWriter Class / GlyphsToStream Method
The destination Stream object.
The Font object to serialize.
Glyph indices to be added to the resulting font subset.
Font serialization options.

In This Topic
GlyphsToStream Method
In This Topic
Writes a subset of the font containing the specified glyphs to a stream.
Syntax
'Declaration
 
Public Function GlyphsToStream( _
   ByVal stream As System.IO.Stream, _
   ByVal font As Font, _
   ByVal glyphIDs As System.Collections.Generic.HashSet(Of UShort), _
   Optional ByVal subsetFlags As FontSubsetFlags _
) As System.Integer
 

Parameters

stream
The destination Stream object.
font
The Font object to serialize.
glyphIDs
Glyph indices to be added to the resulting font subset.
subsetFlags
Font serialization options.

Return Value

The number of bytes saved to the stream.
See Also