[]
        
(Showing Draft Content)

GrapeCity.Documents.Text.FontWriter.CffGlyphsAndCharsToStream

CffGlyphsAndCharsToStream Method

CffGlyphsAndCharsToStream(Stream, Font, HashSet<ushort>, Utf32CodeSet)

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

Declaration
public int CffGlyphsAndCharsToStream(Stream stream, Font font, HashSet<ushort> glyphIDs, Utf32CodeSet utf32CodeSet)
Public Function CffGlyphsAndCharsToStream(stream As Stream, font As Font, glyphIDs As HashSet(Of UShort), utf32CodeSet As Utf32CodeSet) As Integer
Parameters
Type Name Description
Stream stream

The destination Stream object.

Font font

The Font object with PostScript outlines stored in the CFF format.

HashSet<ushort> glyphIDs

Glyph indices to be added to the resulting table subset.

Utf32CodeSet utf32CodeSet

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

Returns
Type Description
int

The number of bytes saved to the stream.

CffGlyphsAndCharsToStream(Stream, Font, HashSet<ushort>, HashSet<int>)

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

Declaration
public int CffGlyphsAndCharsToStream(Stream stream, Font font, HashSet<ushort> glyphIDs, HashSet<int> utf32Chars)
Public Function CffGlyphsAndCharsToStream(stream As Stream, font As Font, glyphIDs As HashSet(Of UShort), utf32Chars As HashSet(Of Integer)) As Integer
Parameters
Type Name Description
Stream stream

The destination Stream object.

Font font

The Font object with PostScript outlines stored in the CFF format.

HashSet<ushort> glyphIDs

Glyph indices to be added to the resulting table subset.

HashSet<int> utf32Chars

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

Returns
Type Description
int

The number of bytes saved to the stream.