[]
        
(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)
Public Function CffCharsToArray(font As Font, utf32CodeSet As Utf32CodeSet) As Byte()
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)
Public Function CffCharsToArray(font As Font, 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<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.