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

        if ptr.is_null() {
            None
        } else {
            Some(Pattern::from_ptr(ptr))
        }
    }
}
/// Find the font closest matching the provided pattern.
///
/// The returned pattern is the result of Pattern::render_prepare.
Find the font closest matching the provided pattern.
The returned pattern is the result of Pattern::render_prepare.
Find the font closest matching the provided pattern . The returned pattern is the result of Pattern :: render_prepare .
pub fn font_match(config: &ConfigRef, pattern: &PatternRef) -> Option<Pattern> {
    unsafe {
        // What is this result actually used for? Seems redundant with
        // return type.
        let mut result = FcResultNoMatch;
        let ptr = FcFontMatch(config.as_ptr(), pattern.as_ptr(), &mut result);
        if ptr.is_null() {
            None
        } else {
            Some(Pattern::from_ptr(ptr))
        }
    }
}
pub fn font_match ( config : & ConfigRef , pattern : & PatternRef ) -> Option < Pattern > { unsafe { // What is this result actually used for? Seems redundant with // return type. let mut result = FcResultNoMatch ; let ptr = FcFontMatch ( config . as_ptr ( ) , pattern . as_ptr ( ) , & mut result ) ; if ptr . is_null ( ) { None } else { Some ( Pattern :: from_ptr ( ptr ) ) } } }
Find the font closest matching the provided pattern.
Find the font closest matching the provided pattern .
config
&ConfigRef
pattern
&PatternRef
config
&ConfigRef
pattern
&PatternRef