Fehlermeldung beim Schrift-Download

  • 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
    1. /var/www/mydomain.de/lib/system/style/FontManager.class.php (88): wcf\util\JSON::decode(…)
    2. /var/www/mydomain.de/lib/acp/form/StyleAddForm.class.php (464): wcf\system\style\FontManager->downloadFamily(…)
    3. /var/www/mydomain.de/lib/acp/form/StyleAddForm.class.php (528): wcf\acp\form\StyleAddForm->downloadGoogleFont(…)
    4. /var/www/mydomain.de/lib/acp/form/StyleEditForm.class.php (65): wcf\acp\form\StyleAddForm->validate(…)
    5. /var/www/mydomain.de/lib/form/AbstractForm.class.php (64): wcf\acp\form\StyleEditForm->validate(…)
    6. /var/www/mydomain.de/lib/form/AbstractForm.class.php (134): wcf\form\AbstractForm->submit(…)
    7. /var/www/mydomain.de/lib/acp/form/StyleAddForm.class.php (747): wcf\form\AbstractForm->readData(…)
    8. /var/www/mydomain.de/lib/acp/form/StyleEditForm.class.php (205): wcf\acp\form\StyleAddForm->readData(…)
    9. /var/www/mydomain.de/lib/page/AbstractPage.class.php (339): wcf\acp\form\StyleEditForm->readData(…)
    10. /var/www/mydomain.de/lib/page/AbstractPage.class.php (122): wcf\page\AbstractPage->show(…)
    11. /var/www/mydomain.de/lib/system/request/Request.class.php (89): wcf\page\AbstractPage->__run(…)
    12. /var/www/mydomain.de/lib/system/request/RequestHandler.class.php (119): wcf\system\request\Request->execute(…)
    13. /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

    ich werfe niemandem etwas vor, höchstens hinterher :whistling:

  • Hallo,

    eines vorweg: Bitte gib einfach nur den Namen der Schriftart ein, mehr braucht es dafür nicht.

    Okay, hat funktioniert - die Option hatte ich nicht getestet. Es wäre jedoch cool, wenn man die Schriftart dadurch "nur herunterladen" könnte, diese aber nicht als Standard gesetzt wird, wenn ich sie z.B. nur für Überschriften verwenden möchte.

    Danke für die Hilfe!

    Viele Grüße,
    Dominik

    ich werfe niemandem etwas vor, höchstens hinterher :whistling:

  • Tim Düsterhus July 6, 2021 at 12:46 PM

    Added the Label 5.4.0 RC 2

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!