I have a multi-language page and one language can not be displayed by the standard font. Is there an easy way switch the font based on the selected language or do I have to create multiple css files and switch based on language??
Yes, of course:
<?php e($kirby->language()->code() == "de", 'font A', 'font B') ?>I think I would create a language class, e.g. for the body:
<body class="<?= $kirby->language()->code() ?>">
and adress this class
body.languagecode1 {
font-family: font1;
}
body.languagecode2 {
font-family: font2;
}