Skip to content
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

Invoice PDF drops non-western characters #1433

Open
fumikito opened this issue Nov 28, 2024 · 1 comment
Open

Invoice PDF drops non-western characters #1433

fumikito opened this issue Nov 28, 2024 · 1 comment
Labels
[Component] CampTix Including addons [Type] Bug [Type] Internationalization Issues related to i18n or handling non-English languages or content

Comments

@fumikito
Copy link

Describe the bug

WordCamp tickets provides invoice features, but the characters input in form fields disappear in Invoice PDF

Image

To reproduce

Steps to reproduce the behavior:

  1. Buy ticket in WordCamp.
  2. Click on 'I need an invoice'
  3. Enter name and address in form fields with Japanese characters.
  4. The PDF attached to email has no Japanese characters.

Image

Expected behavior

  • Japanese(and maybe non-western characters) will display.
  • Or else, display instructions that indicates available characters.

In my opinion, this is because of fonts installed in OS of the web server(FPDF way) or client(Node & headless chrome way).
This is a typical "the abyss of internationalization", so latter approach is reasonable.
Installing bunch of fonts is not reasonable. Only single Japanese font file is more than 5MB, it may be bigger than all western fonts. There are also Chinese, Korean, and so on.

Screenshots / Screencasts

Attached above.

WordCamp

Maybe all WordCamp sites.

System (please complete the following information)

This doesn't depend on client side.

Security Issues

To report a security issue, please visit the WordPress HackerOne program: https://hackerone.com/wordpress.

@fumikito
Copy link
Author

For copy and paste. here are east-asian address which may be disappear.

Japanese

東京都新宿区西新宿2丁目8-1
タワーハイツ203号室

Chinese(simplified)

北京市朝阳区光华路1号
国际大厦A座808室

Chinese(Traditional)

臺北市信義區松智路100號
世界大樓10樓1003室

Korean

서울특별시 강남구 테헤란로 123
강남타워 15층 1502호

@ryelle ryelle added [Component] CampTix Including addons [Type] Internationalization Issues related to i18n or handling non-English languages or content labels Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Component] CampTix Including addons [Type] Bug [Type] Internationalization Issues related to i18n or handling non-English languages or content
Projects
None yet
Development

No branches or pull requests

2 participants