Are you struggling with broken Bengali fonts or the Taka symbol (৳) appearing as a question mark (?) in your WHMCS PDF invoices? After testing various methods, I’ve found a foolproof way to integrate Google‘s Noto Sans Bengali Unicode Bangla Font perfectly into WHMCS.
Logo: Upload your 329x73 size logo (logo.png) to your_whmcs_directory/assets/img/
the logo URL will be https://yourwhmcsportal.com/assets/img/logo.png
Follow these steps to fix your PDF font issues once and for all.
Step 1: Download the Noto Sans Bengali Unicode Bangla Font
First, download the official Noto Sans Bengali font from Google Fonts:
-
Extract the downloaded zip file. You will find a folder named “static”, there is 36 style variations available, you need only two variations, regular and bold. ( NotoSansBengali-Regular.ttf , NotoSansBengali-Bold.ttf )
-
Important: Do NOT rename these files.
Step 2: Convert the Font for TCPDF
WHMCS uses the TCPDF library, which cannot read .ttf files directly. You need to convert it into a format that TCPDF understands.
-
Visit fonts.palettize.me.
-
Upload the
NotoSansBengali-Bold.ttffile. -
Convert and download the resulting zip file.
- Again, Upload the
NotoSansBengali-Regular.ttffile. - Convert and download the resulting zip file.
Step 3: Upload the Converted Files
Inside the converted two zip files, you will find total six specific files:
-
notosansbengali_.ctg.z -
notosansbengali_.php -
notosansbengali_.z notosansbengali_b.ctg.znotosansbengali_b.phpnotosansbengali_b.z
Note: Keep the filenames exactly as they are. Upload these six files to the following directory on your server: your_whmcs_directory/vendor/tecnickcom/tcpdf/fonts/
Step 4: Configure WHMCS Settings
Now, you need to tell WHMCS to use this new font for PDF generation.
-
Log in to your WHMCS Admin Panel.
-
Navigate to Setup > General Settings.
-
Click on the Invoices tab.
-
Find the line PDF Font Family.
-
Select the Custom radio button and type the following exact name into the field:
notosansbengali_ -
Click Save Changes.
Step 5: Verify & Clear Cache
To see the changes, you should clear your template cache:
-
From your WHMCS Admin Panel > Utilities > System > System Cleanup > Empty Template Cache : Go .
-
Now, download a PDF invoice. You should see beautiful, perfectly rendered Bengali text and the Taka symbol!
Why this works: Most tutorials suggest using old fonts like FreeSans, which may not render Bengali glyphs correctly. By using the Noto Sans Bengali Unicode Bangla Font and converting it specifically for the TCPDF version used in WHMCS, you ensure 100% compatibility and professional-looking invoices.
