[]
        
(Showing Draft Content)

GrapeCity.Documents.Text.Font.CollectionFromArray

CollectionFromArray Method

CollectionFromArray(byte[], List<Font>, bool)

Loads all Fonts from a byte array containing single font or a font collection.

Declaration
public static int CollectionFromArray(byte[] fontData, List<Font> fonts, bool initCodeMap = false)
Public Shared Function CollectionFromArray(fontData As Byte(), fonts As List(Of Font), Optional initCodeMap As Boolean = False) As Integer
Parameters
Type Name Description
byte[] fontData

The byte array with the font data.

List<Font> fonts

The destination list of fonts. It must be initialized beforehand.

bool initCodeMap

Set this parameter to True if you're planning to add the loaded fonts to the fallback font collection.

Returns
Type Description
int

The number of loaded fonts.