Schriftart der PDF Belege (Rechnung, usw.) ändern

 [
    'username' => 'username',
    'password' => 'password',
    'host' => 'localhost',
    'port' => '3306',
    'dbname' => 'databasename',
  ],

  'mpdf' => [
        // Passed to \Mpdf\Mpdf::__construct:
        'defaultConfig' => [
            'tempDir' => $this->getCacheDir() . '/mpdf/',
            'fontDir' => $this->DocPath('engine_Library_Mpdf_ttfonts_'),
            'fonttrans' => [
                'helvetica' => 'arial',
                'verdana' => 'arial',
                'times' => 'timesnewroman',
                'courier' => 'couriernew',
                'trebuchet' => 'arial',
                'comic' => 'arial',
                'franklin' => 'arial',
                'albertus' => 'arial',
                'arialuni' => 'arial',
                'zn_hannom_a' => 'arial',
                'ocr-b' => 'ocrb',
                'ocr-b10bt' => 'ocrb',
                'damase' => 'mph2bdamase',
            ],
            'fontdata' => [
                'arial' => [
                    'R' => 'arial.ttf',
                    'B' => 'arialbd.ttf',
                    'I' => 'ariali.ttf',
                    'BI' => 'arialbi.ttf',
                ],
                'couriernew' => [
                    'R' => 'cour.ttf',
                    'B' => 'courbd.ttf',
                    'I' => 'couri.ttf',
                    'BI' => 'courbi.ttf',
                ],
                'georgia' => [
                    'R' => 'georgia.ttf',
                    'B' => 'georgiab.ttf',
                    'I' => 'georgiai.ttf',
                    'BI' => 'georgiaz.ttf',
                ],
                'timesnewroman' => [
                    'R' => 'times.ttf',
                    'B' => 'timesbd.ttf',
                    'I' => 'timesi.ttf',
                    'BI' => 'timesbi.ttf',
                ],
                'verdana' => [
                    'R' => 'verdana.ttf',
                    'B' => 'verdanab.ttf',
                    'I' => 'verdanai.ttf',
                    'BI' => 'verdanaz.ttf',
                ],
                'ubuntu' => [
                    'R' => 'ubuntu.ttf',
                    'B' => 'ubuntub.ttf',
                    'I' => 'ubuntui.ttf',
                    'BI' => 'ubuntuz.ttf',
                ],
            ],
        ],
  ],

];

@Hille schrieb:

@Moritz Naczenski schrieb:

Besser in die config.php packen - da die ja auch bei einem Update nicht überschrieben wird. Die default.php liefert ja nur die Default-Werte, die können per config.php erweitert werden. Das ist dann auch Updatesicher :) 

Wie genau müsste die config.php mit dem oben genannten Beispiel (Ubuntu Font) aussehen? Per Default.php bekomme ich das Einbinden der zusätlichen Schriftart hin, aber nicht per config.php

2 „Gefällt mir“