Document Solutions for Imaging
DS.Documents.Imaging Assembly / GrapeCity.Documents.Text Namespace / FontWriter Class / GlyphsAndCharsToArray Method / GlyphsAndCharsToArray(Font,HashSet<UInt16>,HashSet<Int32>,FontSubsetFlags) Method
The Font object to serialize.
Glyph indices to be added to the resulting font subset.
UTF-32 characters to be supported in the resulting font subset.
Font serialization options.

In This Topic
    GlyphsAndCharsToArray(Font,HashSet<UInt16>,HashSet<Int32>,FontSubsetFlags) Method
    In This Topic
    Creates a subset of the font containing both the specified glyphs and UTF-32 characters, then serializes the subset to a byte array.
    Syntax
    'Declaration
     
    Public Overloads Function GlyphsAndCharsToArray( _
       ByVal font As Font, _
       ByVal glyphIDs As System.Collections.Generic.HashSet(Of UShort), _
       ByVal utf32Chars As System.Collections.Generic.HashSet(Of Integer), _
       Optional ByVal subsetFlags As FontSubsetFlags _
    ) As System.Byte()
    public System.byte[] GlyphsAndCharsToArray( 
       Font font,
       System.Collections.Generic.HashSet<ushort> glyphIDs,
       System.Collections.Generic.HashSet<int> utf32Chars,
       FontSubsetFlags subsetFlags
    )

    Parameters

    font
    The Font object to serialize.
    glyphIDs
    Glyph indices to be added to the resulting font subset.
    utf32Chars
    UTF-32 characters to be supported in the resulting font subset.
    subsetFlags
    Font serialization options.

    Return Value

    Binary data with the resulting font subset.
    See Also