[]
        
(Showing Draft Content)

GrapeCity.Documents.Text.FontWriter.GlyphsAndCharsToStream

GlyphsAndCharsToStream Method

GlyphsAndCharsToStream(Stream, Font, HashSet<ushort>, Utf32CodeSet, FontSubsetFlags)

Writes a subset of the font containing both the specified glyphs and UTF-32 characters to a stream.

Declaration
public int GlyphsAndCharsToStream(Stream stream, Font font, HashSet<ushort> glyphIDs, Utf32CodeSet utf32CodeSet, FontSubsetFlags subsetFlags = FontSubsetFlags.PdfTextField)
Public Function GlyphsAndCharsToStream(stream As Stream, font As Font, glyphIDs As HashSet(Of UShort), utf32CodeSet As Utf32CodeSet, Optional subsetFlags As FontSubsetFlags = FontSubsetFlags.PdfTextField) 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.

Utf32CodeSet utf32CodeSet

A set of UTF-32 characters to be supported in the resulting font subset.

FontSubsetFlags subsetFlags

Font serialization options.

Returns
Type Description
int

The number of bytes saved to the stream.

GlyphsAndCharsToStream(Stream, Font, HashSet<ushort>, HashSet<int>, FontSubsetFlags)

Writes a subset of the font containing both the specified glyphs and UTF-32 characters to a stream.

Declaration
public int GlyphsAndCharsToStream(Stream stream, Font font, HashSet<ushort> glyphIDs, HashSet<int> utf32Chars, FontSubsetFlags subsetFlags = FontSubsetFlags.PdfTextField)
Public Function GlyphsAndCharsToStream(stream As Stream, font As Font, glyphIDs As HashSet(Of UShort), utf32Chars As HashSet(Of Integer), Optional subsetFlags As FontSubsetFlags = FontSubsetFlags.PdfTextField) 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.

HashSet<int> utf32Chars

UTF-32 characters to be supported in the resulting font subset.

FontSubsetFlags subsetFlags

Font serialization options.

Returns
Type Description
int

The number of bytes saved to the stream.