I am currently working on the Drum Machine project from the Front End Libraries section. I want to use custom fonts that I uploaded to GitHub. GitHub serves the raw files and this works fine for images and audio, but it is not working fine for .tff, .woff., and .woff2 fonts. I used the @font-face CSS rule to include these fonts in my project. I had to use a third party service called raw.githack.com in order to assign the correct Content-Type header to the custom fonts on my GitHub repo.
Is there a way to do this without using a third party service? I already uploaded the fonts to my GitHub Pages repo on the master branch and the gh-pages branch, but the fonts still won’t without the third party service. I would rather do everything with GitHub in order to have less dependencies.