# Google Fonts im Backend / Extjs

**URL:** <https://forum.shopware.com/t/google-fonts-im-backend-extjs/44683>\
**Category:** Programmierung\
**Created:** [21. März 2017 um 12:59 UTC](https://forum.shopware.com/t/google-fonts-im-backend-extjs/44683 "2017-03-21T12:59:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tammo](https://avatars.discourse-cdn.com/v4/letter/t/e0b2c6/32.png) [@Tammo](https://forum.shopware.com/u/Tammo)\
**Post date:** [21. März 2017 um 12:59 UTC](https://forum.shopware.com/t/google-fonts-im-backend-extjs/44683/1 "2017-03-21T12:59:29Z")

</div>

Hallo,

ich würde gerne die Schriftart in meinem Plugin im Backend ändern (Textarea und Combobox). Habe schon rausgefunden, dass die Textarea und Combobox mit&nbsp;fieldStyle: {} im Ext.create angepasst werden kann. Schriftgröße lässt sich auch schon ändern. Jedoch bekomme ich keine Google Fonts im Backend eingebungen um diese dort mit font-family und font-style nutzen zu können.

Hoffe es kann wer helfen.

LG

---

<div class="post-metadata">

**Author:** ![Tammo](https://avatars.discourse-cdn.com/v4/letter/t/e0b2c6/32.png) [@Tammo](https://forum.shopware.com/u/Tammo)\
**Post date:** [21. März 2017 um 13:49 UTC](https://forum.shopware.com/t/google-fonts-im-backend-extjs/44683/2 "2017-03-21T13:49:12Z")

</div>

Also in meinem Plugin gibts im Views/backend/base/ &nbsp;eine header.tpl

```
{extends file="backend/base/header.tpl"}
{block name="backend/base/header/css" append}
	
{/block}

```

mit parent: for dem extended file hab ich es auch probiert geht auch nicht.

In der Bootstrap.php hab ich dann

```
	public function onPostDispatchBackend(Enlight_Event_EventArgs $args)
    {
        $subject = $args->getSubject();
        $view = $subject->View();
        $view->addTemplateDir($this->Path() . 'Views/');
		//$view->extendsTemplate('backend/base/header.tpl');
    }

```

wenn das extendsTempalte auskommentiert ist passiert einfach nichts. Wenn ich es mit reinnehme (was ja eigetlich nicht mehr soll) kommt:

```
ext-all.js?201702271540:21 Uncaught h {sourceClass: "Ext.Loader", sourceMethod: "require", msg: "Ext.Loader is not enabled, so dependencies cannot …ally. Missing required class: Shopware.apps.Index", message: "Ext.Loader is not enabled, so dependencies cannot …ally. Missing required class: Shopware.apps.Index"}
raise @ ext-all.js?201702271540:21
Ext.Loader.require @ base?file=bootstrap&loggedIn=1490104088:615
(anonymous) @ ext-all.js?201702271540:21
addSubApplication @ base?file=bootstrap&loggedIn=1490104088:330
launch @ (index):60
onBeforeLaunch @ ext-all.js?201702271540:21
(anonymous) @ ext-all.js?201702271540:21
(anonymous) @ ext-all.js?201702271540:21
fire @ ext-all.js?201702271540:21
Ext.apply.readyEvent.e.fire @ ext-all.js?201702271540:21
fireReadyEvent @ ext-all.js?201702271540:21
(anonymous) @ ext-all.js?201702271540:21

```

vllt hat ja dazu jemand eine Idee

---

<div class="post-metadata">

**Author:** ![Tammo](https://avatars.discourse-cdn.com/v4/letter/t/e0b2c6/32.png) [@Tammo](https://forum.shopware.com/u/Tammo)\
**Post date:** [21. März 2017 um 15:32 UTC](https://forum.shopware.com/t/google-fonts-im-backend-extjs/44683/3 "2017-03-21T15:32:49Z")

</div>

Durch die Hilfe von Niklas B. in FB habe ich den Fehler nun gefunden. Die Datei darf nicht auch header.tpl heißen. Nennt man diese nun z.B. google\_fonts.tpl funktioniert es einwandfrei.
