[]
        
(Showing Draft Content)

GrapeCity.Documents.Text.FontWriter.GlyphsAndCharsToArray

GlyphsAndCharsToArray Method

GlyphsAndCharsToArray(Font, HashSet<ushort>, Utf32CodeSet, FontSubsetFlags)

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

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

Binary data with the resulting font subset.

GlyphsAndCharsToArray(Font, HashSet<ushort>, HashSet<int>, FontSubsetFlags)

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

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

Binary data with the resulting font subset.