-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
It does not support Chinese and Arabic characters. #142
Comments
I tried to remove the UnicodeTranslatorFromDescriptor from the Text component but the chinese characters still not working. I found an issue thread on gofpdf that said that gofpdf doesn't support these languages. jung-kurt/gofpdf#59 (comment) Codem.Col(6, func() {
m.Text("中文 Packages Report: Daily", props.Text{
Top: 1,
Align: consts.Center,
})
m.Text("Type: Small, Medium", props.Text{
Top: 7,
Align: consts.Center,
})
}) ResultI don't know another way to add support to these characters. |
jung-kurt/gofpdf can use special font to support chinese。
I solve it. but I donot use github very well.I donot know how to use pr. |
I will open an PR to you |
@johnfercher is there any progress on this issue |
I need to handle Arabic characters in my app |
I needed to create a document in pdf format with texts in different languages (Chinese, Arabic). Although the Text component uses
func (_m *Pdf) UnicodeTranslatorFromDescriptor(cpStr string) func(string) string
function, it does not support Chinese or Arabic symbols, and converts them to points in the document created.The text was updated successfully, but these errors were encountered: