Document Solutions for PDF
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Text Namespace / FontWriter Class / GlyphsToArray Method
The Font object to serialize.
Glyph indices to be added to the resulting font subset.
Font serialization options.

In This Topic
    GlyphsToArray Method
    In This Topic
    Creates a subset of the font containing the specified glyphs, then serializes the subset to a byte array.
    Syntax
    'Declaration
     
    Public Function GlyphsToArray( _
       ByVal font As Font, _
       ByVal glyphIDs As System.Collections.Generic.HashSet(Of UShort), _
       Optional ByVal subsetFlags As FontSubsetFlags _
    ) As System.Byte()
    public System.byte[] GlyphsToArray( 
       Font font,
       System.Collections.Generic.HashSet<ushort> glyphIDs,
       FontSubsetFlags subsetFlags
    )

    Parameters

    font
    The Font object to serialize.
    glyphIDs
    Glyph indices to be added to the resulting font subset.
    subsetFlags
    Font serialization options.

    Return Value

    Binary data with the resulting font subset.
    See Also