Documents for PDF .NET Edition
GrapeCity.Documents.Common Assembly / GrapeCity.Documents.Text Namespace / Font Class / CollectionFromArray Method
The byte array with the font data.
The destination list of fonts. It must be initialized beforehand.
Set this parameter to True if you're planning to add the loaded fonts to the fallback font collection.

In This Topic
    CollectionFromArray Method
    In This Topic
    Loads all Fonts from a byte array containing single font or a font collection.
    Syntax
    'Declaration
     
    Public Shared Function CollectionFromArray( _
       ByVal fontData() As System.Byte, _
       ByVal fonts As System.Collections.Generic.List(Of Font), _
       Optional ByVal initCodeMap As System.Boolean _
    ) As System.Integer
    public static System.int CollectionFromArray( 
       System.byte[] fontData,
       System.Collections.Generic.List<Font> fonts,
       System.bool initCodeMap
    )

    Parameters

    fontData
    The byte array with the font data.
    fonts
    The destination list of fonts. It must be initialized beforehand.
    initCodeMap
    Set this parameter to True if you're planning to add the loaded fonts to the fallback font collection.

    Return Value

    The number of loaded fonts.
    See Also