New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
daily report does not support unicode characters #18465
Comments
In const DEFAULT_REPORT_FONT_FAMILY = 'dejavusans';
Because no TTF or OTF font can accommodate all 100k+ glyphs (limit 64k), a suggestion would be to allow font selection/upload for different language combinations in settings to override the automatically chosen font per language. |
I'll mark this for now as a regression as I think this used to work? |
Note in case there are discrepancies between different shipped versions: I am using Matomo Analytics - Ethical Stats. Powerful Insights. v4.5.0 for WordPress |
I guess, to view the report with the correct format need to change the Matomo language to the same language that the report has. how to change language is here. https://matomo.org/faq/how-to/how-can-i-change-the-language-of-matomo-as-a-user/ It seems like this is not a regression. More like a FAQ. Or we can add a config variable in the config.ini.php called |
What about when a user has mixed language content? The base language is English, but the content is bilingual, primarily English with some Chinese characters, maybe, for example? The interface language would need to be English for the user (so |
@froger-me, right, good question. I guess we should import the https://matomo.org/faq/how-to-install/faq_142/ fonts here to tcpdf Lib, that should fix it. I will give a try, see if that works. |
@@froger-me Update this issue, it should be in the next release very soon, it use the unifont.ttf, https://matomo.org/faq/how-to-install/faq_142/ If you like a different font, I guess just need to overwrite unifont.ttf |
Great, thanks for the update! As a suggestion for possible further improvement - how difficult would it be to set the font in It seems only 3 files would need what it looks like minor changes in a few places - calling the
I might be totally off base here, so please ignore if it's irrelevant. |
@froger-me that make sense to me, set up fonts in the config will be easier, but I can't make the judgment call. Can I copy the request to another tickets category as an enhancement (new feature), which I am sure the management team will pick up, |
Absolutely :) ! |
when running matomo on websites which have special characters such as japanese or chinese characters, we are not able to get them in the daily report even if we follow https://matomo.org/faq/how-to-install/faq_142/.
Expected Behavior
Having the characters displayed in the PDF report
Current Behavior
Current unicode characters are not displayed in the PDF report
Steps to Reproduce (for Bugs)
Create a webpage with a title in chinese or in japanese.
Check in the report that these characters are well displayed in the page title report.
create a daily report with page titles.
check the generated pdf that the characters for the chinese page are not well displayed.
The text was updated successfully, but these errors were encountered: