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

Japan font #94

Closed
ducxinh opened this issue Feb 25, 2020 · 6 comments
Closed

Japan font #94

ducxinh opened this issue Feb 25, 2020 · 6 comments

Comments

@ducxinh
Copy link

ducxinh commented Feb 25, 2020

Hey guys

Does service support Japan font?
I have use droidsansfallback font, But I get error message

Undefined offset: 2 at vendor/setasign/fpdf/fpdf.php:819

font

Thank you

@ducxinh
Copy link
Author

ducxinh commented Feb 25, 2020

Last error is
FPDF error: Unsupported font type: TrueTypeUnicode

@ducxinh
Copy link
Author

ducxinh commented Feb 25, 2020

I read code and change TrueTypeUnicode to TrueType
But still error message

Undefined index: at 1672 fpdf.php
for($i=32;$i<=255;$i++) { 
   $s .= $cw[chr($i)].' '; // chr($i is empty
}

@JanSlabon
Copy link
Member

This is related to FPDF or TCPDF and not to FPDI. For me it looks like the font file you have is from TCPDF and not from FPDF. You cannot mix these font definition files.
So IMHO just use TCPDF to fix this problem :-)

If you need support with FPDF please ask in the FPDF forum: http://fpdf.org/phorum/

@ducxinh
Copy link
Author

ducxinh commented Feb 26, 2020

Thank you for your response.

I have a function import exist pdf to new pdf and add some Japan text in new pdf.
Can your ��service (SetaPDF) support for this function?

And could you share with me some info about the correct font for Japanse in pdf?

I find out This demo is similar what i need.
https://www.setasign.com/products/setapdf-core/demos/add-text-annotations/#p-811

But If i put text is 代表者名 to pdf, It was broken.
Seem font is not correct

@JanSlabon
Copy link
Member

What stops you from using TCPDF? I mean you already have font definition files for TCPDF. FPDI is compatible with TCPDF so, just go ahead and use it: https://manuals.setasign.com/fpdi-manual/v2/installation/#index-2-2 :-)

@JanSlabon
Copy link
Member

I am going to close this because it is not related to FPDI at all.

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

2 participants