[]
        
(Showing Draft Content)

GrapeCity.Documents.Text.FontWriter.GlyphsToStream

GlyphsToStream Method

GlyphsToStream(Stream, Font, HashSet<ushort>, FontSubsetFlags)

Writes a subset of the font containing the specified glyphs to a stream.

Declaration
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
Parameters
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.

Returns
Type Description
int

The number of bytes saved to the stream.