Skip to content
This repository has been archived by the owner on Nov 13, 2021. It is now read-only.

How to display chinese characters ? #59

Closed
toplinuxsir opened this issue Nov 18, 2015 · 9 comments
Closed

How to display chinese characters ? #59

toplinuxsir opened this issue Nov 18, 2015 · 9 comments

Comments

@toplinuxsir
Copy link

How to display chinese characters ?
Should I use cp1252.map ?
Thanks !

@jung-kurt
Copy link
Owner

Unfortunately, gofpdf doesn't currently support Chinese, Korean and Japanese fonts since it is restricted to using code pages that have a maximum of 256 characters.

Code page 1252 contains only western characters so it won't help here.

You may want to take a look at gopdf. It now supports Unicode font subsetting.

@toplinuxsir
Copy link
Author

I think gofpdf is great , any plan to support Asian characters ?

@jung-kurt
Copy link
Owner

I definitely want to Asian characters. Any help in that regard will be greatly appreciated!

@thinkingdyw
Copy link

when to support Chinese?

@jung-kurt
Copy link
Owner

I recently exchanged emails with a company that planned to implement full Unicode support for gofdpf, but I am not sure if it will contribute its changes to the project or when that task will be complete.

@marcus-downing
Copy link
Contributor

That would be impressive, and useful. PDF has a shaky and complicated relationship with Unicode, so it's not a simple question. I'd be interested in hearing how they plan to address eg font subsetting?

@jung-kurt
Copy link
Owner

Does font subsetting imply that a stripped-down font file is always embedded in the PDF?

@marcus-downing
Copy link
Contributor

If it's a non-standard font, yes. And languages other than English are likely to use non-standard fonts.

One of the hurdles facing my (stalled) attempt to port FPDI was the need to merge font subsets, and deal with code pages. I never really had an answer to that, that wasn't huge amounts of work.

@jung-kurt
Copy link
Owner

Thanks, @marcusatbang -- I hope we can tackle this someday.

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

No branches or pull requests

4 participants