laravel pdf config

Estimated reading time: 1 minute
return[
  // default font lists
  // https://github.com/mpdf/mpdf/blob/development/src/Config/FontVariables.php
  'default_font' => 'serif',
  'fontDir' => [
    __DIR__ . '/custom/font/directory'
  ],
  'fontData' => [
    'font-name' => [
      'R' => 'Frutiger-Normal.ttf',
      'I' => 'FrutigerObl-Normal.ttf',
    ]
  ]
];
lara-pdf, code4mk, laravel, package