Contents

CTFontCollectionSortDescriptorsCallback

The collection sorting callback type.

Declaration

typealias CTFontCollectionSortDescriptorsCallback = (CTFontDescriptor, CTFontDescriptor, UnsafeMutableRawPointer) -> CFComparisonResult

Parameters

  • first:

    The first descriptor.

  • second:

    The second descriptor.

  • refCon:

    A pointer to contextual data from the client.

Return Value

The matching font descriptors of a collection in sorted order.

See Also

Getting Font Descriptors