diff --git a/app/Controllers/Billing/Ipd.php b/app/Controllers/Billing/Ipd.php
index 797445e..f5ae3a8 100644
--- a/app/Controllers/Billing/Ipd.php
+++ b/app/Controllers/Billing/Ipd.php
@@ -876,6 +876,9 @@ class Ipd extends BaseController
'margin_bottom' => 8,
'margin_left' => 8,
'margin_right' => 8,
+ 'default_font' => 'freeserif',
+ 'autoScriptToLang' => true,
+ 'autoLangToFont' => true,
];
if (in_array($formNo, [10, 11], true)) {
@@ -2352,7 +2355,12 @@ class Ipd extends BaseController
'{{CURRENT_DATETIME}}' => esc((string) ($data['generated_at'] ?? date('d-m-Y h:i A'))),
];
- return strtr($templateHtml, $replacements);
+ $html = strtr($templateHtml, $replacements);
+
+ // Force a Unicode-capable fallback stack so Devanagari text renders in mPDF.
+ $fontStyle = '';
+
+ return $fontStyle . $html;
}
private function calculateCashBalanceTotals(array $rows): array
diff --git a/app/Views/billing/ipd/ipd_form_print.php b/app/Views/billing/ipd/ipd_form_print.php
index a1ca00e..8a52448 100644
--- a/app/Views/billing/ipd/ipd_form_print.php
+++ b/app/Views/billing/ipd/ipd_form_print.php
@@ -29,7 +29,7 @@ if ($admitDate === '') {