[]
Writes a subset of the font containing the specified glyphs to a stream.
public int GlyphsToStream(Stream stream, Font font, HashSet<ushort> glyphIDs, FontSubsetFlags subsetFlags = FontSubsetFlags.PdfRenderer)
Public Function GlyphsToStream(stream As Stream, font As Font, glyphIDs As HashSet(Of UShort), Optional subsetFlags As FontSubsetFlags = FontSubsetFlags.PdfRenderer) As Integer
| Type | Name | Description |
|---|---|---|
| Stream | stream | The destination Stream object. |
| Font | font | The Font object to serialize. |
| HashSet<ushort> | glyphIDs | Glyph indices to be added to the resulting font subset. |
| FontSubsetFlags | subsetFlags | Font serialization options. |
| Type | Description |
|---|---|
| int | The number of bytes saved to the stream. |