Writes a subset of the font containing the specified glyphs to a stream.
public System.int GlyphsToStream(
System.IO.Stream ,
Font ,
System.Collections.Generic.HashSet<ushort> ,
FontSubsetFlags
)
'Declaration
Public Function GlyphsToStream( _
ByVal As System.IO.Stream, _
ByVal As Font, _
ByVal As System.Collections.Generic.HashSet(Of UShort), _
Optional ByVal 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.