Page 2 of 2

Re: PDF fonts for central eupean languages

Posted: Wed Aug 08, 2007 10:10 am
by pajonkhfat
Works perfectly. Big thanx.
One trick - you should take care about caps i fontfilename.php

Re: PDF fonts for central eupean languages

Posted: Fri Sep 14, 2007 10:03 am
by mdb76
Hi, sorry to rehash an old topic, but I found this and was wondering if it has any bearing on the use of Vera font?

http://dejavu.sourceforge.net/wiki/index.php/Main_Page

Kind regards,
Mame du Bois

Re: PDF fonts for central eupean languages

Posted: Fri Sep 14, 2007 8:38 pm
by H13
I don't understand your question? Maybe I can help you, but I don't know what should have any bearing on the use of Vera font? (my  English is not so good  :) )

Re: PDF fonts for central eupean languages

Posted: Sat Sep 15, 2007 1:48 am
by mdb76
Hi H13,

I was just curious if this would solve any of the problems mentioned in this post with the Vera font.

Kind regards,
Mame du Bois

Re: PDF fonts for central eupean languages

Posted: Sat Sep 15, 2007 8:49 am
by infograf768
dejavu fonts series, as well as other fonts, will be proposed on joomlacode for all users.

Re: PDF fonts for central eupean languages

Posted: Tue Sep 18, 2007 7:18 am
by mariahayek
Thank you for all these codes..

Re: PDF fonts for central eupean languages

Posted: Fri Dec 28, 2007 9:40 am
by infograf768
Forgot to post the new url for TCPDF repository

http://joomlacode.org/gf/project/pdffonts15/frs/

Re: PDF fonts for central eupean languages

Posted: Thu Jan 03, 2008 2:26 pm
by baijianpeng
H13 wrote:
1. Create new ufm file e.g. freemono - ttf2ufm -a -F freemono.ttf - you need ttf2ufm.exe in joomla/libraries/tcpdf/tools
2.At the end, you create freemono.php , freemono.z, freemono.ctg.z: php -q makefontuni.php freemono.ttf freemono.ufm - you need makefontuni.php in joomla/libraries/tcpdf/tools
and you copy this files (freemono.php , freemono.z, freemono.ctg.z) to joomla/language/pdf_fonts/

Don't forget to change your language xml file (e.g cs-CZ.xml in joomla/language/cs-CZ/):

Code: Select all

<pdfFontName>freemono</pdfFontName>
I created Chinese pdf font following the same procedure as H13 described. Finally, it worked. I can see correct Chinese words in the pdf output result.

Now, I have a new problem.

The pdf font file, cnsong.z file, is too big. It is about 5MB big while the english pdf fonts in Joomla! 1.5 RC4 are around 200KB !

Please tell me how to reduce the size of my pdf font file ? Such a big file makes it very slow to generate pdf document. Many times it will lead to browser frozen and dead after clicked the PDF button.

Please help me. Thanks.

Re: PDF fonts for central eupean languages

Posted: Fri Jan 04, 2008 6:25 am
by infograf768
It is impossible to reduce the size of a tcpdf font and this is why we can't release with trunk a font that would cover the needs of all languages.
Each Translators should choose the font that cover the needs of a specific language.

freesans is a good compromise because of its range and relatively light weight.

I guess you made cnsong for Traditional Chinese. (Correct me if I am wrong)
The simplified Chinese font gbsn00lp is also extremely heavy.

That is simply due to the important amount of glyphs in each of these fonts and all of them are included in the resulting pdf even if not used.
This is a known limitation of tcpdf. We do not have any solution to this as of now.

Btw, could you send me the cnsong font you made by mail (see my profile)? I will add it to our repository.

Re: PDF fonts for central eupean languages

Posted: Fri Jan 04, 2008 6:35 am
by baijianpeng
infograf768 wrote: It is impossible to reduce the size of a tcpdf font and this is why we can't release with trunk a font that would cover the needs of all languages.

I guess you made cnsong for Traditional Chinese. (Correct me if I am wrong)

Btw, could you send me the cnsong font you made by mail (see my profile)? I will add it to our repository.
1. Do you mean the built in pdf font also cover Chinese when you say all langauges ?

2. Yes, I made cnsong pdf font. And it can work for both Traditional Chinese and Simplified Chinese.

3. I will send you those 3 files for cnsong pdf font.

Thanks.

Re: PDF fonts for central eupean languages

Posted: Fri Jan 04, 2008 8:02 am
by infograf768
baijianpeng wrote: 1. Do you mean the built in pdf font also cover Chinese when you say all langauges ?
I wrote exactly the opposite.  ;)
this is why we can't release with trunk a font that would cover the needs of all languages.
The included font freesans covers many languages (all European + some more) but not all.
None of the Far East languages are covered by it.

Could you test gbsn00lp and let me know if it covers also Traditional Chinese? Asking because it is lighter than cnsong.
http://joomlacode.org/gf/project/pdffonts15/frs/

Posting cnsong now on Forge.

Re: PDF fonts for central eupean languages

Posted: Fri Jan 04, 2008 9:14 am
by baijianpeng
I did not found  gbsn00lp there  :(

do you have a direct download link ?

Re: PDF fonts for central eupean languages

Posted: Fri Jan 04, 2008 9:38 am
by infograf768

Re: PDF fonts for central eupean languages

Posted: Fri Jan 04, 2008 10:17 am
by baijianpeng
Unfortunately, I got Permission Denied message even after I login in.

maybe you can send those gbsn00lp  files to my e-mail box?

Thanks.

Re: PDF fonts for central eupean languages

Posted: Fri Jan 04, 2008 10:19 am
by infograf768

Re: PDF fonts for central eupean languages

Posted: Fri Jan 04, 2008 10:30 am
by baijianpeng
Still got Permission Denied message.  :-[

Re: PDF fonts for central eupean languages

Posted: Fri Jan 04, 2008 6:20 pm
by ot2sen
baijianpeng wrote: Still got Permission Denied message.   :-[
Changed a setting for that package. Please try again.  :)

Re: PDF fonts for central eupean languages

Posted: Sat Jan 05, 2008 12:39 am
by baijianpeng
Thanks to  ot2sen: I got it this time.  ;)

I will test it soon and let you know the result.

Re: PDF fonts for central eupean languages

Posted: Sat Jan 05, 2008 1:44 am
by baijianpeng
I did some test with gbsn00lp pdf-font to handle Traditional Chinese characters. Unfortunately, failed.

Please see the attached screen shot, I had marked the original text in content article and output result respectively. It is very easy to compare them and know that gbsn00lp pdf font can't support Tranditional Chinese characters.

But my cnsong pdf font can do this job. I had tested it with both Simplified Chinese and Traditional Chinese words.  :laugh:

Re: PDF fonts for central eupean languages

Posted: Sat Jan 05, 2008 8:34 am
by infograf768
Thanks for the test.
gbsn00lp, as it is lighter than cnsong, will still be the best choice for Simplified Chinese users.

Re: PDF fonts for central eupean languages

Posted: Sat Jan 05, 2008 8:46 am
by baijianpeng
Then, how about Traditional Chinese users ?

Maybe you don't know, Chinese website will often has both simplified_chinese and traditional_chinese on a same page. Such as the forum discussion, user from mainland and Taiwan will discuss together. Of course they will enter own language characters respectively, and the Joomla! page must handle them at the same time.

In fact, sometimes traditional chinese articles will be quoted in a simplified chinese page. Don't forget, we are all Chinese, we can read both of these, but tcpdf can't if it has no correct font.

So I think the right solution is, find only one font for these two languages. cnsong can work for them both, only too big. But better than nothing.

Re: PDF fonts for central eupean languages

Posted: Sat Jan 05, 2008 9:05 am
by infograf768
I do not see the problem.

The 2 sets of fonts are available in the repository for anyone to pick-up.

Then it is just a matter of changing the xx-XX.xml in the site language folder and upload the desired font.
whateverfontuserwantstouse

Packagers will do what they think is best for them.

Ultimately, it is the end-user's choice. :)

Re: PDF fonts for central eupean languages

Posted: Wed Oct 21, 2009 2:48 pm
by adbuster
H13 wrote:At the end, you create freemono.php , freemono.z, freemono.ctg.z: php -q makefontuni.php freemono.ttf freemono.ufm - you need makefontuni.php in joomla/libraries/tcpdf/tools
and you copy this files (freemono.php , freemono.z, freemono.ctg.z) to joomla/language/pdf_fonts/
Hei

I have just converted Century Gothic Garamond TT to ufm-files.

Possible for the library if you do want so.


Q's

1. To create 'freemono.php , freemono.z, freemono.ctg.z': do I use the code 'php -q makefontuni.php freemono.ttf freemono.ufm' in the software 'ttf2ufm.exe'?

2. What to do with makefontuni.php?

3. Where to put the umf fonts?


Thanks in advance.

Re: PDF fonts for central eupean languages

Posted: Mon Dec 07, 2009 4:10 pm
by kelvinminn
Hi .. All;
How can I change to Burmese language Unicode fonts in PDF font where we can get free/Open Sources at http://code.google.com/p/ayarunicode/do ... =label:ttf .
I did .ufm and .afm files but I do not know how to going on? Please let me know if you can?
Thank you for valuable works.
Kelvin

Re: PDF fonts for central eupean languages

Posted: Tue Jan 29, 2013 12:00 pm
by Pariya
i use persian language and i have this error too
and i cant solved it , i use the structure that valid in post but it didnt solved