- Affected App
- WoltLab Suite Core
Hallo zusammen,
wie hinterlege ich im Stil-Editor im Bereich "Globale Einstellung" die Schriftart? Drei Möglichkeiten habe ich ausprobiert:
1. Möglichkeit: URL zur Schriftart in Textfeld hinterlegen, da das das erste war, was mir der Beschreibungstext gesagt hätte:
Folgende Fehlermeldung erscheint nach dem Absenden:
- Requested URL
- POST /acp/index.php?style-edit/4/
- Referrer
- https://mydomain.de/acp/index.php?style-edit/4/
- Error Message
- Could not decode JSON (error 4): @font-face { font-family: 'Alex Brush'; font-style: normal; font-weight: 400; src: url(https://fonts.gstatic.com/s/alexbrush/v13/SZc83FzrJKuqFbwMKk6EtUI.ttf) format('truetype'); }
- Type
- wcf\system\exception\SystemException
- File (Line)
- /var/www/mydomain.de/lib/util/JSON.class.php (43)
- Stacktrace
-
- /var/www/mydomain.de/lib/system/style/FontManager.class.php (88): wcf\util\JSON::decode(…)
- /var/www/mydomain.de/lib/acp/form/StyleAddForm.class.php (464): wcf\system\style\FontManager->downloadFamily(…)
- /var/www/mydomain.de/lib/acp/form/StyleAddForm.class.php (528): wcf\acp\form\StyleAddForm->downloadGoogleFont(…)
- /var/www/mydomain.de/lib/acp/form/StyleEditForm.class.php (65): wcf\acp\form\StyleAddForm->validate(…)
- /var/www/mydomain.de/lib/form/AbstractForm.class.php (64): wcf\acp\form\StyleEditForm->validate(…)
- /var/www/mydomain.de/lib/form/AbstractForm.class.php (134): wcf\form\AbstractForm->submit(…)
- /var/www/mydomain.de/lib/acp/form/StyleAddForm.class.php (747): wcf\form\AbstractForm->readData(…)
- /var/www/mydomain.de/lib/acp/form/StyleEditForm.class.php (205): wcf\acp\form\StyleAddForm->readData(…)
- /var/www/mydomain.de/lib/page/AbstractPage.class.php (339): wcf\acp\form\StyleEditForm->readData(…)
- /var/www/mydomain.de/lib/page/AbstractPage.class.php (122): wcf\page\AbstractPage->show(…)
- /var/www/mydomain.de/lib/system/request/Request.class.php (89): wcf\page\AbstractPage->__run(…)
- /var/www/mydomain.de/lib/system/request/RequestHandler.class.php (119): wcf\system\request\Request->execute(…)
- /var/www/mydomain.de/acp/index.php (11): wcf\system\request\RequestHandler->handle(…)
2. Möglichkeit: Annahme, Schrift kann über Eingabefeld gesucht werden -> funktioniert nicht
3. Möglichkeit: Workaround, Upload der Schriftart über die Funktion zum Hochladen zusätzlicher Bilder schlägt fehl, da die Schriftart ja kein Bild ist.
Was mache ich falsch bzw. funktioniert es, wie gewollt?
Viele Grüße,
Dominik