[]
        
(Showing Draft Content)

GrapeCity.Documents.Text.FontWriter.CffGlyphsAndCharsToArray

CffGlyphsAndCharsToArray Method

CffGlyphsAndCharsToArray(Font, HashSet<ushort>, Utf32CodeSet)

Creates a subset of the CFF font table containing both the specified glyphs and UTF-32 characters, then serializes the subset to a byte array.

Declaration
public byte[] CffGlyphsAndCharsToArray(Font font, HashSet<ushort> glyphIDs, Utf32CodeSet utf32CodeSet)
Public Function CffGlyphsAndCharsToArray(font As Font, glyphIDs As HashSet(Of UShort), utf32CodeSet As Utf32CodeSet) As Byte()
Parameters
Type Name Description
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
byte[]

Binary data with the resulting CFF font table.

CffGlyphsAndCharsToArray(Font, HashSet<ushort>, HashSet<int>)

Creates a subset of the CFF font table containing both the specified glyphs and UTF-32 characters, then serializes the subset to a byte array.

Declaration
public byte[] CffGlyphsAndCharsToArray(Font font, HashSet<ushort> glyphIDs, HashSet<int> utf32Chars)
Public Function CffGlyphsAndCharsToArray(font As Font, glyphIDs As HashSet(Of UShort), utf32Chars As HashSet(Of Integer)) As Byte()
Parameters
Type Name Description
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
byte[]

Binary data with the resulting CFF font table.