Custom fonts not working for visitors

AI-generated summary

In a support thread titled ‘Custom fonts not working for visitors,’ Merlls_Rizzini reports that custom fonts fail to load for anonymous visitors, defaulting to Times New Roman, while Google Fonts work fine. After codinghorror requests the site URL, Merlls_Rizzini provides bcharts.com.br and confirms the issue persists. Falco discovers the custom font files return 404 errors for visitors. Merlls_Rizzini confirms fonts only display for logged-in users. Falco identifies the root cause: the site setting prevent_anons_from_downloading_files blocks non-image assets like fonts for anonymous users. Disabling this setting resolves the issue, as confirmed by Merlls_Rizzini, who thanks the community with “Obrigadooo :heart_eyes:”.

This is my forum font when you’re logged in.

This is the fonts when you’re seeing as a visitor (it’s showing Times New Roman).

Anyone knows why the custom fonts that I uploaded aren’t loading for visitors, but fonts from Google Fonts are loading correctly?!

I’m new here you guys! Please help me!!!

Provide URLs to your site would help

If the resource or style is only available to logged in users that would cause it, but I am not sure how you’d do that.

bcharts.com.br

Here, tell me if it’s showing Times New Roman.

I have no idea how to do something like that.

Your fonts are giving me 404

Example URL: https://bcharts.com.br/uploads/default/original/3X/f/3/f396cd8ab6c6635d33d96e05826df4fee9abbff8.otf

How can I solve it?

They’re showing only for logged users.

There is a site setting prevent_anons_from_downloading_files which has a warning:

WARNING: this will prevent any non-image site assets posted as attachments from working.

Try disabling that.

It worked! Thank you so much :heart_eyes: