Archived topic
Local font not work.
8 replies · Started by Sato Mori on January 26, 2023
Hi there,
I want to use font locally so im trying to upload Be Vietnam Pro font but it did not work.
1. I cant up load file .ttf
2. Another file uploaded successfully but in dev tool show this error: “ Failed to load resource: the server responded with a status of 404 (Not Found)”
Thanks for your help.
Hi Sato Mori,
Thank you for starting a new topic.
To clarify, were you able to upload other font files? If you go to Media > Library, do you see some Font files uploaded? If so, what are they?
Another file uploaded successful is woff woff2 svg eot.
I don't know if this is related, but I do use a plugin called Perfmatter. Looks like there are a few settings that are font related.
I will send the screen photo of setting bellow.
Hi there,
unless you specifically need a special ttf font file, you don't need them.
just use the .woff and .woff2 files.
Okay. But when all the setting done, i turned google font api off and the text layout also change.
Anyway, thanks for your time.
May be Im wrong somewhere
If you have Perfmatters then you can use its local font option:
https://perfmatters.io/docs/host-google-fonts-locally/
Then you don't need to add our code.
Thanks David.
So now I have to delete the CSS code, how about the font files uploaded?
It seems you don't have to download/upload Google fonts, the plugin would download them for you.
You should be able to remove the uploaded Google fonts safely, but it's better to check with the plugin's support.