mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-18 18:54:07 +00:00
The @font-face URLs in resources/views/app/pdf/locale/th.blade.php pointed to resource_path('static/static/fonts/THSarabunNew*.ttf'), which does not exist on disk, so dompdf fell back to a default face when rendering Thai PDFs. Drop the duplicated segment so the bundled THSarabunNew TTFs resolve correctly.
35 lines
974 B
PHP
35 lines
974 B
PHP
<style type="text/css">
|
|
@font-face {
|
|
font-family: 'THSarabunNew';
|
|
font-style: normal;
|
|
font-weight: normal;
|
|
src: url("{{ resource_path('static/fonts/THSarabunNew.ttf') }}") format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'THSarabunNew';
|
|
font-style: normal;
|
|
font-weight: bold;
|
|
src: url("{{ resource_path('static/fonts/THSarabunNew-Bold.ttf') }}") format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'THSarabunNew';
|
|
font-style: italic;
|
|
font-weight: normal;
|
|
src: url("{{ resource_path('static/fonts/THSarabunNew-Italic.ttf') }}") format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'THSarabunNew';
|
|
font-style: italic;
|
|
font-weight: bold;
|
|
src: url("{{ resource_path('static/fonts/THSarabunNew-BoldItalic.ttf') }}") format('truetype');
|
|
}
|
|
|
|
body {
|
|
font-family: "THSarabunNew", sans-serif !important;
|
|
}
|
|
|
|
</style>
|