Function CTFontManagerCreateFontRequestRunLoopSource

Source
pub unsafe extern "C-unwind" fn CTFontManagerCreateFontRequestRunLoopSource(
    source_order: CFIndex,
    create_matches_callback: &Block<dyn Fn(NonNull<CFDictionary>, pid_t) -> NonNull<CFArray>>,
) -> Option<CFRetained<CFRunLoopSource>>
👎Deprecated: This functionality will be removed in a future release
Available on crate features CTFontManager and block2 and libc only.
Expand description

Creates a CFRunLoopSourceRef that will be used to convey font requests from CTFontManager.

Parameter sourceOrder: The order of the created run loop source.

Parameter createMatchesCallback: A block to handle the font request.

Returns: A CFRunLoopSourceRef that should be added to the run loop. To stop receiving requests, invalidate this run loop source. Will return NULL on error, in the case of a duplicate requestPortName or invalid context structure.