Internal ticket MAGETWO-70209 was created;
Any suggestion for a temporary fix?
@jsdupuis
Here is very dirty workaround / backup all file before doing these steps. ->
function _setFontRegular
function _setFontBold
function _setFontItalic
** you might need to adjust font size according to your font, finding "setFontSize"
$drawingString = '"libiconv"' == ICONV_IMPL ? iconv(
'UTF-8',
'UTF-16BE//IGNORE',
$string
) : @iconv(
'UTF-8',
'UTF-16BE',
$string
);
to
$drawingString = mb_convert_encoding($string, "UTF-16BE", "UTF-8");
If you get the error about cannot convert MacRoman. then you might have to edit /vendor/magento/zendframework1/library/Zend/Pdf/FileParser.php and look for
function readStringMacRoman
replace
return iconv('MacRoman', $characterSet, $bytes);
with
return mb_convert_encoding($bytes, $characterSet, 'UTF-8');
PS. This is not appropriate way to deal with this issue. However LinLibertineFont contains no Thai-characters , and iconv lib can't properly convert MacRoman to UTF16BE (Used in thai font like TH Sarabun)
PS.2. This is very dirty fix. If your store is in EN/TH then it might work. But this might raise some errors if dealing with other char-encoding.
-------- BTW, Thai-font issue is in magento since 1.xx
I am using Magento 2.1.7 and facing same character issue when printing invoice of arabic order. Any update for solution ?

@jsdupuis, thank you for your report.
We've created internal ticket(s) MAGETWO-70209 to track progress on the issue.
@magento-engcom-team Please check same for arabic too as I am facing same issue.
Hi @jsdupuis. Thank you for your report.
The issue has been fixed in magento/magento2#13016 by @rossmc in 2.2-develop branch
Related commit(s):
The fix will be available with the upcoming 2.2.5 release.
great news , thanks every one
Hi @jsdupuis. Thank you for your report.
The issue has been fixed in magento/magento2#14711 by @rossmc in 2.1-develop branch
Related commit(s):
The fix will be available with the upcoming 2.1.15 release.
Hi @jsdupuis. Thank you for your report.
The issue has been fixed in magento/magento2#14710 by @rossmc in 2.3-develop branch
Related commit(s):
The fix will be available with the upcoming 2.3.0 release.
@magento-engcom-team
Hello,
https://github.com/magento/magento2/commit/abd7be087cebeae8109f8d998d24361cedb2d554
this fix is not enough to fix the problem. the characters become supported but. still the letters are not connected together.

After long investigation I found that zend pdf library doesn't support arabic language.
the solution for this is to use extension use another pdf library.
i found this extension uses another library and support arabic. you have to pay for it sorry didn't found free one. https://www.vnecoms.com/magento2-extensions/magento2-pdf-invoice-pro.html
@o0mohammed0o I have this error, did you suggest any solution except this one
https://www.vnecoms.com/magento2-extensions/magento2-pdf-invoice-pro.html
i am getting same font issues in order invoice print out from admin panel.
from customer panel its working perfectly. if any solution please put it here.
If anyone found solution for Arabic. Please let me know
Most helpful comment
@magento-engcom-team Please check same for arabic too as I am facing same issue.