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

Issue: CJK Characters Not Displaying After Adding Noto Sans Fonts in TCPDF 6.7.5 #725

Open
yxj0312 opened this issue Jun 17, 2024 · 0 comments

Comments

@yxj0312
Copy link

yxj0312 commented Jun 17, 2024

Hi,

I used the current version of TCPDF 6.7.5 to add Noto Sans fonts as custom fonts. Unfortunately, after the conversion, all CJK language words cannot be displayed. I tested with the following characters: "中文字符, ภาษาไทย, 日本語, 한국어, 😊, 🍕, ∑, ∞", and none of them are displayed correctly.

I tried adding more parameters by running addfont.php like so:

php vendor/tecnickcom/tcpdf/tools/tcpdf_addfont.php -b -t TrueTypeUnicode -i public/assets/css/fonts/Noto_Sans/static/NotoSans-Regular.ttf

But it does not work. Any help would be appreciated.

Please let me know if you need more information.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant