Asian characters don't render in PDF reports
Bug #830831 reported by
technick
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SchoolTool |
Triaged
|
High
|
Douglas Cerna | ||
schooltool (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
PDF export of asian characters doesn't work correctly. This has been verified with Hangul (Korean), Japanese, and Chinese text.
The PDF seems to have the correct text data, but all asian characters render as square boxes in the PDF.
** You can copy the text out of the PDF and paste it in a text editor, so this looks more like a font issue.
See the attached screen-shot.
To reproduce:
1) Add three students with names 이름 (Korean), 名前 (Japanse), 名称 (Chinese).
2) Save a PDF report that includes these students (ex: create some absenses in a section for these students and view the absences for section report)
Changed in schooltool: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in schooltool: | |
milestone: | 2.1.0 → next |
Changed in schooltool: | |
assignee: | Gediminas Paulauskas (menesis) → Douglas Cerna (replaceafill) |
Changed in schooltool: | |
status: | Triaged → Opinion |
description: | updated |
Changed in schooltool: | |
status: | Opinion → Triaged |
Changed in schooltool: | |
milestone: | next → none |
affects: | ubuntu → schooltool (Ubuntu) |
Changed in schooltool (Ubuntu): | |
status: | New → Confirmed |
To post a comment you must log in.
Correct, this is a font issue. We only embed Liberation* fonts in the PDF. To display other languages correctly we would need to embed the appropriate fonts based maybe on the request locale or the language setting. I couldn't find a dynamic way to do it while working with Khmer.