pub fn new() -> Result<FontConfig, ()> {
        let location = get_config().ok_or(())?;
        let data = parse_config(&location);
        Ok(FontConfig {
            location: location.to_path_buf(),
            data,
        })
    }
/// Creates a new FontConfig object by looking for the fontconfig config file
Creates a new FontConfig object by looking for the fontconfig config file
Creates a new FontConfig object by looking for the fontconfig config file
pub fn new() -> Result<FontConfig, ()> {
        let location = get_config().ok_or(())?;
        let data = parse_config(&location);
        Ok(FontConfig {
            location: location.to_path_buf(),
            data,
        })
    }
pub fn new ( ) -> Result < FontConfig , ( ) > { let location = get_config ( ) . ok_or ( ( ) ) ? ; let data = parse_config ( & location ) ; Ok ( FontConfig { location : location . to_path_buf ( ) , data , } ) }
Creates a new FontConfig object by looking for the fontconfig config file
Creates a new FontConfig object by looking for the fontconfig config file