chinese encoding

This commit is contained in:
Edmond Teh
2020-09-09 13:14:36 +08:00
parent fb70812aeb
commit 3c204baee9
28 changed files with 166876 additions and 18 deletions
+1 -1
View File
@@ -171,7 +171,7 @@ return [
Tymon\JWTAuth\Providers\LaravelServiceProvider::class,
Barryvdh\DomPDF\ServiceProvider::class
Barryvdh\DomPDF\ServiceProvider::class,
],
/*
+24
View File
@@ -0,0 +1,24 @@
<?php
return [
'mode' => 'utf-8',
'format' => 'A4',
'author' => '',
'subject' => '',
'keywords' => '',
'creator' => 'Laravel Pdf',
'display_mode' => 'fullpage',
'tempDir' => base_path('../temp/'),
'font_path' => base_path('resources/fonts/'),
'font_data' => [
'examplefont' => [
'R' => 'ExampleFont-Regular.ttf', // regular font
'B' => 'ExampleFont-Bold.ttf', // optional: bold font
'I' => 'ExampleFont-Italic.ttf', // optional: italic font
'BI' => 'ExampleFont-Bold-Italic.ttf', // optional: bold-italic font
'useOTL' => 0xFF, // required for complicated langs like Persian, Arabic and Chinese
'useKashida' => 75, // required for complicated langs like Persian, Arabic and Chinese
]
// ...add as many as you want.
]
];