BCcampus / pressbooks-mpdf

[UNMAINTAINED] open source HTML to PDF conversion
GNU General Public License v2.0
7 stars 7 forks source link

Languages exported as strange character #64

Open johnpeterm opened 5 years ago

johnpeterm commented 5 years ago

Description

Languages other than English exported as strange character. Example Language: Tamil

The book exporting properly in other options prince, ebook etc.

Expected behaviour

exporting actual unicode language

Actual behaviour Strange characters exported

ss

Steps to reproduce the problem

System Information

bdolor commented 5 years ago

thanks for reporting @johnpeterm - will look into this.

josieg commented 5 years ago

To add to this issue:

In global theme options, fonts selected in "Language and script support" are not applied in MPDF, but they are applied in Prince. I only tested this with Arabic, but I can test the other fonts if that is useful. Let me know!

To reproduce:

  1. Enable "Arabic" as a font in global theme options.
  2. Add Arabic text to a chapter.
  3. Export the book as Digital PDF and mPDF.
  4. Compare files. Digital PDF will show Arabic characters, mPDF will show a bunch of little boxes, as shown in screenshot above.