Hello Franz and Brummsel,
maybe I can give a solution.
All fonts that are used in Enlighten should be handled like the first two steps in this tutorial:
https://www.joomla51.com/tutorials/template-customization/localize-web-fonts.
Get the CSS, download the fonts.zip, add the fonts to the templates/j51_enlighten/fonts folder.
Add the local-fonts.css with all the css into the templates/j51_enlighten/css folder.
What comes now I haven't yet tested, because I have no installation with Enlighten but I would try like this:
- go to templates/j51_enlighten/php
- open styles.php (make sure to have a copy of the original file for backup reasons^^)
In the styles.php you will find some areas that look like this:
<?php elseif(($body_fontstyle != "Arial, Helvetica, sans-serif") || ($body_fontstyle != "Courier, monospace") || ($body_fontstyle != "Tahoma, Geneva, sans-serif") || ($body_fontstyle != "Garamond, serif") || ($body_fontstyle != "Georgia, serif") || ($body_fontstyle != "Impact, Charcoal, sans-serif") || ($body_fontstyle != "Lucida Console, Monaco, monospace") || ($body_fontstyle != "Lucida Sans Unicode, Lucida Grande, sans-serif") || ($body_fontstyle != "MS Sans Serif, Geneva, sans-serif") || ($body_fontstyle != "MS Serif, New York, sans-serif") || ($body_fontstyle != "Palatino Linotype, Book Antiqua, Palatino, serif") || ($body_fontstyle != "Times New Roman, Times, serif") || ($body_fontstyle != "Trebuchet MS, Helvetica, sans-serif") || ($body_fontstyle != "Verdana, Geneva, sans-serif")) : ?>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=<?php echo $body_fontstyle ?>" />
<style type="text/css">body, input, button, select, textarea {font-family:<?php echo ($body_fontstyle); ?> }</style>
I would delete the complete line with "
http://fonts.googleapis.com/css" in the link reference <link href>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=<?php echo $body_fontstyle ?>" />
Add ONE line (at line 12 for example) with the reference to your local fonts CSS.
<link rel="stylesheet" href="/<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/css/local-fonts.css" type="text/css" />
For testing I would add the link reference to the local-fonts.css on line 12 and than delete the first reference to Google at line 41. Then I would check the frontend and see if the $body_fontstyle works.
I hope my description was not too confusing and I hope it helps.
Falls ihr deutschsprachige Unterstützung benötigt, sagt einfach Bescheid