#How to use Custom fonts in css?

1 messages · Page 1 of 1 (latest)

sick goblet
#

I have downloaded file in my local machine and added to the public folder, but unfortunately it says** unsupported text encoding **.

bleak raft
#

If you're referring to the actual font file, this is normal as it is a binary file so will not be openable in a standard text editor. The documentation has some guidance about using the font file: https://docs.astro.build/en/guides/fonts/

Astro Documentation

Looking to add some custom typefaces to an Astro website? Use Google Fonts with Fontsource or add a font of your choice.

sick goblet
#

i figured it out

#

the file has to convert to .woff and then it worked for me