Opened 4 years ago

Closed 3 years ago

Last modified 3 years ago

#1537 closed Bug (fixed)

PDFReports: issues with arabic fonts (and other unicode characters) i18n

Reported by: matt Owned by:
Priority: major Milestone: Piwik 1.1
Component: Core Keywords:
Cc: Sensitive: no

Description

See report in: http://forum.piwik.org/index.php?showtopic=13001

putting in 1.1 as the fix is probably not trivial.

Change History (8)

comment:1 Changed 4 years ago by vipsoft (robocoder)

The error message (after replacing helvetica by arialunicid0) is because we deleted those font files in r2749.

comment:2 Changed 4 years ago by suweihua

firstly i download the tcpdf class and upload the fonts file "stsongstdlight.php" to /libs/tcpdf/fonts
secondly modify this file /plugins/PDFReports/PDFRenderer.php line 18 , set the $reportFont ='stsongstdlight';
and done, the font helvetica does not support chinese also arabic

comment:3 Changed 4 years ago by vipsoft (robocoder)

  • Summary changed from PDF issues with arabic fonts (and other unicode characters?) to PDFReports: issues with arabic fonts (and other unicode characters)

comment:4 follow-up: Changed 3 years ago by matt (mattab)

suweihua, are you describing a fix to the chinese/arabic font issue, or confirming the bug?

comment:5 Changed 3 years ago by matt (mattab)

  • Summary changed from PDFReports: issues with arabic fonts (and other unicode characters) to PDFReports: issues with arabic fonts (and other unicode characters) i18n

comment:6 in reply to: ↑ 4 Changed 3 years ago by suweihua

Replying to matt:

suweihua, are you describing a fix to the chinese/arabic font issue, or confirming the bug?

describing how i fix the bug to the font issue ,

comment:7 Changed 3 years ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

(In [3477]) * Updating TCPDF to latest version

  • Fixes #1537 Adding specific fonts for specific languages. PDF Reports now generate in all languages (inc. arabic, chinese, japanese, russian, korean, ukrainian, etc.) except ahmaric and thai.
Note: See TracTickets for help on using tickets.