Mayo commited on
chore: format code
Browse files
koharu-app/src/google_fonts.rs
CHANGED
|
@@ -74,7 +74,11 @@ impl GoogleFontService {
|
|
| 74 |
/// Downloads a font family's regular variant to disk cache.
|
| 75 |
/// Returns the path to the cached .ttf file.
|
| 76 |
/// No-op if already cached.
|
| 77 |
-
pub async fn fetch_family(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
// Check cache first
|
| 79 |
{
|
| 80 |
let cached = self.cached_families.lock().await;
|
|
|
|
| 74 |
/// Downloads a font family's regular variant to disk cache.
|
| 75 |
/// Returns the path to the cached .ttf file.
|
| 76 |
/// No-op if already cached.
|
| 77 |
+
pub async fn fetch_family(
|
| 78 |
+
&self,
|
| 79 |
+
family: &str,
|
| 80 |
+
http: &reqwest_middleware::ClientWithMiddleware,
|
| 81 |
+
) -> Result<Utf8PathBuf> {
|
| 82 |
// Check cache first
|
| 83 |
{
|
| 84 |
let cached = self.cached_families.lock().await;
|