
Step 1: vendor/magento/module-sales/Model/Order/Pdf/AbstractPdf.php
Edit 1: Change $drawingString
to
$drawingString = mb_convert_encoding($string, "UTF-16BE", "UTF-8");
Edit 2: Change the font name from FreeSerif.ttf
to Kalpurush.ttf
Step 2: vendor/magento/zendframework1/library/Zend/Pdf/FileParser.php
Edit 1: Replace “ return iconv('MacRoman', $characterSet, $bytes);
” with “return mb_convert_encoding($bytes, $characterSet, 'UTF-8');
”
Step 3: lib/internal/GnuFreeFont/
Upload: the font file (Kalpurush.ttf
) in this directory
Rate this blog_post

Saiful Karim
I am a professional Digital Marketer and my expertise skills are also in web development, Magento, Laravel and eCommerce.
Latest Blog
Tags
- Written by: Saiful Karim
- Posted on: August 31, 2020