Merge pull request #2244 from bengu-thon-mai-mochi/pdf-language-support
Invoices/Bills pdfs supports Japanese and Chinese chars
This commit is contained in:
@ -16,11 +16,25 @@
|
||||
<!-- Css -->
|
||||
<link rel="stylesheet" href="{{ asset('public/css/print.css?v=' . version('short')) }}" type="text/css">
|
||||
|
||||
@if (isset($currency_style) && $currency_style && in_array(app()->getLocale(), ['zh-CN', 'ja-JP', 'zh-TW']))
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: 'Firefly Sung';
|
||||
font-weight: 'normal';
|
||||
src: url('{{ asset("/public/css/fonts/firefly_sung_normal.ttf") }}') format("truetype");
|
||||
}
|
||||
|
||||
* {
|
||||
font-family: 'Firefly Sung', sans-serif !important;
|
||||
}
|
||||
</style>
|
||||
@else
|
||||
<style type="text/css">
|
||||
* {
|
||||
font-family: DejaVu Sans, sans-serif !important;
|
||||
}
|
||||
</style>
|
||||
@endif
|
||||
|
||||
@stack('css')
|
||||
|
||||
|
Reference in New Issue
Block a user