Hi all. This happens in Snowman, but I guess it can be the same in any other format.
I have my font files in a subfolder next to the game file. I try to load this font with a simple CSS declaration:
@font-face {
font-family: "Baskerville";
src: url("fonts/LibreBaskerville/400.woff") format('woff');
}
The console tells me that this fails because of CORS, Cross Origin Resource Sharing policy.
I haven't found any good solution for Twines that are distributed as HTML files. I could load the font from the internet, but that would require an internet connection at any possible time the player would play, so I'm not too fond of it.
Another suggestion I've found is encoding the fonts with base64 and including them in the CSS file itself.
Have you run into this problem? Do you have any recommendations?