[]
        
(Showing Draft Content)

GrapeCity.Documents.Text.FontWriter.GlyphsToArray

GlyphsToArray Method

GlyphsToArray(Font, HashSet<ushort>, FontSubsetFlags)

Creates a subset of the font containing the specified glyphs, then serializes the subset to a byte array.

Declaration
public byte[] GlyphsToArray(Font font, HashSet<ushort> glyphIDs, FontSubsetFlags subsetFlags = FontSubsetFlags.PdfRenderer)
Public Function GlyphsToArray(font As Font, glyphIDs As HashSet(Of UShort), Optional subsetFlags As FontSubsetFlags = FontSubsetFlags.PdfRenderer) 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.

FontSubsetFlags subsetFlags

Font serialization options.

Returns
Type Description
byte[]

Binary data with the resulting font subset.