pub fn font_sort(config: &ConfigRef, pattern: &PatternRef) -> Option<FontSet> {
    unsafe {
        // What is this result actually used for? Seems redundant with
        // return type.
        let mut result = FcResultNoMatch;

        let mut charsets: *mut _ = ptr::null_mut();
        let ptr = FcFontSort(
            config.as_ptr(),
            pattern.as_ptr(),
            1, // Trim font list.
            &mut charsets,
            &mut result,
        );

        if ptr.is_null() {
            None
        } else {
            Some(FontSet::from_ptr(ptr))
        }
    }
}
/// List fonts by closeness to the pattern.
List fonts by closeness to the pattern.
List fonts by closeness to the pattern .
pub fn font_sort(config: &ConfigRef, pattern: &PatternRef) -> Option<FontSet> {
    unsafe {
        // What is this result actually used for? Seems redundant with
        // return type.
        let mut result = FcResultNoMatch;
        let mut charsets: *mut _ = ptr::null_mut();
        let ptr = FcFontSort(
            config.as_ptr(),
            pattern.as_ptr(),
            1, // Trim font list.
            &mut charsets,
            &mut result,
        );
        if ptr.is_null() {
            None
        } else {
            Some(FontSet::from_ptr(ptr))
        }
    }
}
pub fn font_sort ( config : & ConfigRef , pattern : & PatternRef ) -> Option < FontSet > { unsafe { // What is this result actually used for? Seems redundant with // return type. let mut result = FcResultNoMatch ; let mut charsets : * mut _ = ptr :: null_mut ( ) ; let ptr = FcFontSort ( config . as_ptr ( ) , pattern . as_ptr ( ) , 1 , // Trim font list. & mut charsets , & mut result , ) ; if ptr . is_null ( ) { None } else { Some ( FontSet :: from_ptr ( ptr ) ) } } }
List fonts by closeness to the pattern.
List fonts by closeness to the pattern .
config
&ConfigRef
pattern
&PatternRef
config
&ConfigRef
pattern
&PatternRef