I'm using mapboxgl to show a map with various markers with clusters (to group markers when zoomed out). I used this tutorial to get the markers to work: https://docs.mapbox.com/mapbox-gl-js/example/cluster/.
I'm trying to get custom fonts to work however I get 404 errors when specifying fonts. The used font is available in studio if I list fonts in the upper toolbar, the mapbox fonts listed in the dialog seem to work, the custom fonts don't.
I've stumbled upon this page: https://docs.mapbox.com/help/troubleshooting/manage-fontstacks/ however this seems to assume the layers are created within studio, which is not the case for my project.
How can I use custom fonts with the markers created using the tutorial listed above?