fontsource-downloader
A library to download (and cache) fonts with fontsource REST API.
Library Features
asynccompatible- caching enabled (with option to customize cache root dir)
Examples
Python
# only supported async runtime in python
=
=
: = await
# do what you want with the cached font file ...
Rust
use PathBuf;
use ;
let client = new.unwrap;
let query = FontQuery ;
let font_file: PathBuf = client.download_font.await.unwrap;
// do what you want with the cached font file ...