Cambodia Alphabets issue on delivery slip

Viewed 309

I got a issue with Prestashop 1.7.4.2 delivery slip that it is not recognizing Khmer letters. Can anyone please help with which font I can use it to make this letters display.

enter image description here

I had added supported fonts in \override\classes\pdf\PDFGenerator.php but it is not working.

2 Answers

On Ubuntu 20.04 fc-match -s ":lang=km" | head -10 shows

KhmerOS.ttf: "Khmer OS" "Regular"
DejaVuSans.ttf: "DejaVu Sans" "Book"
DejaVuSans-Bold.ttf: "DejaVu Sans" "Bold"
n019003l.pfb: "Nimbus Sans L" "Regular"
NimbusSans-Regular.otf: "Nimbus Sans" "Regular"
Loma.ttf: "Loma" "Regular"
Waree.ttf: "Waree" "Regular"
Umpush-Bold.ttf: "Umpush" "Bold"
Laksaman.ttf: "Laksaman" "Regular"
NotoSansCJK-Regular.ttc: "Noto Sans CJK JP" "Regular"

So, DejaVuSans is font you are looking for.

PDFGeneratorCore uses helvetica as default font. Try to set en language by PDFGeneratorCore::setFontForLang($iso_lang) or just use en language globally to choose DejaVuSans

Related