Last edited on March 13, 2024
You can add more fonts (not Google Fonts) by using the Code Injection feature.
If you're looking to upload custom fonts to your Typedream website, follow these steps to add a unique touch to your site's typography.
Gather the font files you want to upload. Ensure they are in compatible formats like .woff
or .woff2
.
Send the font files to our support team. We'll take care of uploading them to our Digital Ocean servers securely.
Once the fonts are uploaded, follow these instructions:
<style>@font-face { font-family: 'Geist'; font-weight: 1 1000; src: url("https://typedream-assets.sfo3.cdn.digitaloceanspaces.com/Font/GeistVariableVF.woff2"); }</style>
Now can be accessed by setting font family to the uploaded font based on the written font family above, which is Geist in this case
So can for example using the copy JSON: (see "fontFamily": "Geist")
{
"copyingElement": true,
"element": [{
"children": [{
"fontFamily": "Geist",
"styled": true,
"text": "Hello Geist",
"id": "51c50c5a-3e19-4454-ade8-6995a52edfe2"
}],
"id": "70771f96-a0b9-4ee3-8153-7893e37afa78",
"type": "h1"
}]
}
The code above will look like this:
Hello Geist
That's it! Your custom font is now applied to the specified elements on your Typedream website.
Made in Typedream