Possible PDF creation issue with phpmyfaq v1.4.8

Please report bugs here!

Moderator: Thorsten

Post Reply
bberetta
Posts: 5
Joined: Thu Apr 14, 2005 8:07 pm

Possible PDF creation issue with phpmyfaq v1.4.8

Post by bberetta »

I have phpmyfaq running with both English and Japanese languages being used. If I create a PDF of the English article, all works fine. If I do the same for Japanese, the PDF is simply garbage characters. What is missing, or what am I doing wrong?
Thorsten
Posts: 15729
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

this is no bug, you need a Japanese font file for that. Here's a howto to generate one: http://www.fpdf.org/en/tutorial/tuto7.htm

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
bberetta
Posts: 5
Joined: Thu Apr 14, 2005 8:07 pm

Post by bberetta »

Thank you for the quick response. I created the font file as per the howto, and installed it. This still does not work.

I had a look at the pdf.php and see that the font "Arial" is set. Is this possibly why I still get garbage. If this is so, how do I set the font for the Japanese language?

Thanks again.
Thorsten
Posts: 15729
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

you're right, this is a constant... :-(

What happens if you change Arial to the Japanese font? Does this work?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
bberetta
Posts: 5
Joined: Thu Apr 14, 2005 8:07 pm

Post by bberetta »

Good Day,

I changed the font to "Kochi-Mincho". I now get a message that the font cannot be found. I also ensured that the font name matched the name given in the the kochi-mincho.php file, and I also tried "kochi-mincho" just in case...

Still the same message "Cannot find the font" :(
Thorsten
Posts: 15729
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

can you please send me a SQL dump of that entry and the font file that I can test it at my test suite? Thanks!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
bberetta
Posts: 5
Joined: Thu Apr 14, 2005 8:07 pm

Post by bberetta »

Did you receive the mysql dump and font files from me?

Brandon
Thorsten
Posts: 15729
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi Brandon,

yes I did. The last days I had only little spare time so I try to fix your problem this weekend.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
bberetta
Posts: 5
Joined: Thu Apr 14, 2005 8:07 pm

Post by bberetta »

That's fine, I wanted to make sure you received the files, that is all.

I shall wait for the fix, and not pressure you.

Brandon
Post Reply