[]
        
(Showing Draft Content)

GrapeCity.Documents.Text.FontWriter.CffCharsToArray

CffCharsToArray Method

CffCharsToArray(Font, Utf32CodeSet)

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

Declaration
public byte[] CffCharsToArray(Font font, Utf32CodeSet utf32CodeSet)
Parameters
Type Name Description
Font font

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

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.

CffCharsToArray(Font, HashSet<int>)

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

Declaration
public byte[] CffCharsToArray(Font font, HashSet<int> utf32Chars)
Parameters
Type Name Description
Font font

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

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.