[]
        
(Showing Draft Content)

GrapeCity.Documents.Text.Font.FromArray

FromArray Method

FromArray(byte[], bool)

Loads the first Font from a byte array.

Declaration
public static Font FromArray(byte[] fontData, bool initCodeMap = false)
Public Shared Function FromArray(fontData As Byte(), Optional initCodeMap As Boolean = False) As Font
Parameters
Type Name Description
byte[] fontData

The byte array with the font data.

bool initCodeMap

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

Returns
Type Description
Font

The newly created font, or null if the file did not contain any fonts.

FromArray(byte[], string)

Loads a Font with given full font name from a byte array.

Declaration
public static Font FromArray(byte[] fontData, string fullFontName)
Public Shared Function FromArray(fontData As Byte(), fullFontName As String) As Font
Parameters
Type Name Description
byte[] fontData

The byte array with the font data.

string fullFontName

The full font name to be loaded.

Returns
Type Description
Font

The newly created font.