Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hi Friend! You'll need to add something like this to your Javascript sheet: 

// CHANGE FONT FAMILY

var settingFontFamily = ["Montserrat", "Merriweather", "Open Dyslexic"];

var setFont = function() {

var passages = document.getElementById("passages");

switch (settings.fontFamily) {

case "Montserrat":

passages.style.fontFamily = "'Montserrat', sans-serif";

break;

}

switch (settings.fontFamily) {

case "Merriweather":

passages.style.fontFamily = "'Merriweather', serif";

break;

}

switch (settings.fontFamily) {

case "Open Dyslexic":

passages.style.fontFamily = "'Dyslexic', serif";

break;

}

};

You can probably find a template somewhere with the entire code, I got this one from Vahnya.

Happy Coding!

(+1)

I. Love. You. So much.