Fix Thai font path with duplicated static/ segment in PDF locale partial

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.
This commit is contained in:
Darko Gjorgjijoski
2026-04-06 21:48:00 +02:00
parent 9c3013bb24
commit 346e5df7ee

View File

@@ -3,28 +3,28 @@
font-family: 'THSarabunNew';
font-style: normal;
font-weight: normal;
src: url("{{ resource_path('static/static/fonts/THSarabunNew.ttf') }}") format('truetype');
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/static/fonts/THSarabunNew-Bold.ttf') }}") format('truetype');
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/static/fonts/THSarabunNew-Italic.ttf') }}") format('truetype');
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/static/fonts/THSarabunNew-BoldItalic.ttf') }}") format('truetype');
src: url("{{ resource_path('static/fonts/THSarabunNew-BoldItalic.ttf') }}") format('truetype');
}
body {