Function

CTFontManagerCreateFontDescriptorsFromData(_:)

Creates an array of font descriptors for the fonts in the supplied data.

Declaration

func CTFontManagerCreateFontDescriptorsFromData(_ data: CFData) -> CFArray

Parameters

data

The font data.

Return Value

An array of font descriptors.

Discussion

This is the preferred function when the data contains a font collection (TTC or OTC). This function returns an empty array in the event of invalid or unsupported font data.