pub fn find_or_download_font() -> Result<PathBuf, io::Error> {
    let mut base = PathBuf::from(home_dir());
    base.push(RELATIVE_TO_HOME);
    if !base.is_dir() {
        try!(fs::create_dir(&base));
    }

    let mut font_path = base.clone();
    font_path.push(FONT_NAME);
    if font_path.is_file() {
        return Ok(font_path);
    }

    let zip_path = try!(download_zip(&base));
    try!(unzip(&zip_path, &base));
    Ok(font_path)
}
/// Locate a local font or download it.                                    
Locate a local font or download it.
Locate a local font or download it .
pub fn find_or_download_font() -> Result<PathBuf, io::Error> {
    let mut base = PathBuf::from(home_dir());
    base.push(RELATIVE_TO_HOME);
    if !base.is_dir() {
        try!(fs::create_dir(&base));
    }
    let mut font_path = base.clone();
    font_path.push(FONT_NAME);
    if font_path.is_file() {
        return Ok(font_path);
    }
    let zip_path = try!(download_zip(&base));
    try!(unzip(&zip_path, &base));
    Ok(font_path)
}
pub fn find_or_download_font ( ) -> Result < PathBuf , io :: Error > { let mut base = PathBuf :: from ( home_dir ( ) ) ; base . push ( RELATIVE_TO_HOME ) ; if ! base . is_dir ( ) { try ! ( fs create_dir ( base ) ) ; } let mut font_path = base . clone ( ) ; font_path . push ( FONT_NAME ) ; if font_path . is_file ( ) { return Ok ( font_path ) ; } let zip_path = try ! ( download_zip ( base ) ) ; try ! ( unzip ( zip_path base ) ) ; Ok ( font_path ) }
Locate a local font or download it.
Locate a local font or download it .