fix: Google Font

feat: add a todo view
This commit is contained in:
Julien Calixte
2026-01-19 00:36:29 +01:00
parent b6554282f7
commit 3e417ca271
10 changed files with 162 additions and 110 deletions

View File

@@ -1,10 +1,9 @@
import FontFaceObserver from "fontfaceobserver"
const assembleFontLink = (font: string) => {
return `https://fonts.googleapis.com/css2?display=swap&family=${font.replaceAll(
" ",
"+",
)}`
return `https://fonts.googleapis.com/css2?display=swap&family=${font
.replaceAll(",", "&family=")
.replaceAll(" ", "+")}`
}
export const downloadGoogleFont = async (font: string): Promise<void> => {