From 346e5df7eed8a003f0bb157567a3ecad0d73f6ef Mon Sep 17 00:00:00 2001 From: Darko Gjorgjijoski Date: Mon, 6 Apr 2026 21:48:00 +0200 Subject: [PATCH] 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. --- resources/views/app/pdf/locale/th.blade.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/views/app/pdf/locale/th.blade.php b/resources/views/app/pdf/locale/th.blade.php index 749b84a6..4c235682 100644 --- a/resources/views/app/pdf/locale/th.blade.php +++ b/resources/views/app/pdf/locale/th.blade.php @@ -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 {