I did something wrong, since the menu dosent work in game, but I can't figure out what.
EDIT: Found the issue. Here are the right codes. It might be useful to somebody.
var settingFontNames = ["Clear Sans", "Open Dyslexic"];
var settingFontHandler = function () {
var $html = $("html");
$html.removeClass("clearsans");
$html.removeClass("opendyslexic");
switch (settings.Font) {
case "Clear Sans":
$html.addClass("clearsans");
break;
case "Open Dyslexic":
$html.addClass("opendyslexic");
break;
}
};
Setting.addList("Font", {
label : "Font",
list : settingFontNames,
onInit : settingFontHandler,
onChange : settingFontHandler,
default : "Clear Sans",
});
html.opendyslexic .passage {
font-family: OpenDyslexic-Regular;
}
html.clearsans .passage {
font-family: ClearSans-Regular;
}