PDF fonts for central eupean languages

A place to discuss Joomla! translation matters.

Moderator: wendhausen

User avatar
pajonkhfat
Joomla! Apprentice
Joomla! Apprentice
Posts: 46
Joined: Sun Jul 29, 2007 11:26 am
Location: Warszawa

Re: PDF fonts for central eupean languages

Post by pajonkhfat » Wed Aug 08, 2007 10:10 am

Works perfectly. Big thanx.
One trick - you should take care about caps i fontfilename.php
Last edited by pajonkhfat on Wed Aug 08, 2007 10:15 am, edited 1 time in total.

mdb76
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 183
Joined: Sat Oct 15, 2005 3:56 pm
Location: Toowoomba, Australia
Contact:

Re: PDF fonts for central eupean languages

Post by mdb76 » Fri Sep 14, 2007 10:03 am

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

User avatar
H13
Joomla! Ace
Joomla! Ace
Posts: 1545
Joined: Sun Dec 10, 2006 6:39 pm
Location: Czech Republic
Contact:

Re: PDF fonts for central eupean languages

Post by H13 » Fri Sep 14, 2007 8:38 pm

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  :) )
- Phoca Cart - Joomla eCommerce App - https://www.phoca.cz/phocacart
- Phoca Gallery - powerful image gallery
- Phoca Restaurant Menu - https://www.phoca.cz/phocamenu
- Phoca Download - download manager for Joomla

mdb76
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 183
Joined: Sat Oct 15, 2005 3:56 pm
Location: Toowoomba, Australia
Contact:

Re: PDF fonts for central eupean languages

Post by mdb76 » Sat Sep 15, 2007 1:48 am

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

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: PDF fonts for central eupean languages

Post by infograf768 » Sat Sep 15, 2007 8:49 am

dejavu fonts series, as well as other fonts, will be proposed on joomlacode for all users.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
mariahayek
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Fri Jul 27, 2007 2:01 pm
Contact:

Re: PDF fonts for central eupean languages

Post by mariahayek » Tue Sep 18, 2007 7:18 am

Thank you for all these codes..
Only exact URLs allowed in signature. Please read Forum Rules: http://forum.joomla.org/viewtopic.php?f=8&t=65

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: PDF fonts for central eupean languages

Post by infograf768 » Fri Dec 28, 2007 9:40 am

Forgot to post the new url for TCPDF repository

http://joomlacode.org/gf/project/pdffonts15/frs/
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
baijianpeng
Joomla! Guru
Joomla! Guru
Posts: 516
Joined: Mon Mar 20, 2006 3:17 pm
Location: China
Contact:

Re: PDF fonts for central eupean languages

Post by baijianpeng » Thu Jan 03, 2008 2:26 pm

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.
JoomlaGate - Chinese Joomla Users' Portal

http://www.joomlagate.com

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: PDF fonts for central eupean languages

Post by infograf768 » Fri Jan 04, 2008 6:25 am

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.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
baijianpeng
Joomla! Guru
Joomla! Guru
Posts: 516
Joined: Mon Mar 20, 2006 3:17 pm
Location: China
Contact:

Re: PDF fonts for central eupean languages

Post by baijianpeng » Fri Jan 04, 2008 6:35 am

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.
JoomlaGate - Chinese Joomla Users' Portal

http://www.joomlagate.com

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: PDF fonts for central eupean languages

Post by infograf768 » Fri Jan 04, 2008 8:02 am

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.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
baijianpeng
Joomla! Guru
Joomla! Guru
Posts: 516
Joined: Mon Mar 20, 2006 3:17 pm
Location: China
Contact:

Re: PDF fonts for central eupean languages

Post by baijianpeng » Fri Jan 04, 2008 9:14 am

I did not found  gbsn00lp there  :(

do you have a direct download link ?
JoomlaGate - Chinese Joomla Users' Portal

http://www.joomlagate.com

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: PDF fonts for central eupean languages

Post by infograf768 » Fri Jan 04, 2008 9:38 am

Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
baijianpeng
Joomla! Guru
Joomla! Guru
Posts: 516
Joined: Mon Mar 20, 2006 3:17 pm
Location: China
Contact:

Re: PDF fonts for central eupean languages

Post by baijianpeng » Fri Jan 04, 2008 10:17 am

Unfortunately, I got Permission Denied message even after I login in.

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

Thanks.
JoomlaGate - Chinese Joomla Users' Portal

http://www.joomlagate.com

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: PDF fonts for central eupean languages

Post by infograf768 » Fri Jan 04, 2008 10:19 am

Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
baijianpeng
Joomla! Guru
Joomla! Guru
Posts: 516
Joined: Mon Mar 20, 2006 3:17 pm
Location: China
Contact:

Re: PDF fonts for central eupean languages

Post by baijianpeng » Fri Jan 04, 2008 10:30 am

Still got Permission Denied message.  :-[
JoomlaGate - Chinese Joomla Users' Portal

http://www.joomlagate.com

User avatar
ot2sen
Joomla! Master
Joomla! Master
Posts: 10381
Joined: Thu Aug 18, 2005 9:58 am
Location: Hillerød - Denmark
Contact:

Re: PDF fonts for central eupean languages

Post by ot2sen » Fri Jan 04, 2008 6:20 pm

baijianpeng wrote: Still got Permission Denied message.   :-[
Changed a setting for that package. Please try again.  :)
Ole Bang Ottosen
Dansk frivillig Joomla! support websted - joomla.dk
OpenTranslators Core Team opentranslators.org

User avatar
baijianpeng
Joomla! Guru
Joomla! Guru
Posts: 516
Joined: Mon Mar 20, 2006 3:17 pm
Location: China
Contact:

Re: PDF fonts for central eupean languages

Post by baijianpeng » Sat Jan 05, 2008 12:39 am

Thanks to  ot2sen: I got it this time.  ;)

I will test it soon and let you know the result.
JoomlaGate - Chinese Joomla Users' Portal

http://www.joomlagate.com

User avatar
baijianpeng
Joomla! Guru
Joomla! Guru
Posts: 516
Joined: Mon Mar 20, 2006 3:17 pm
Location: China
Contact:

Re: PDF fonts for central eupean languages

Post by baijianpeng » Sat Jan 05, 2008 1:44 am

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:
You do not have the required permissions to view the files attached to this post.
JoomlaGate - Chinese Joomla Users' Portal

http://www.joomlagate.com

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: PDF fonts for central eupean languages

Post by infograf768 » Sat Jan 05, 2008 8:34 am

Thanks for the test.
gbsn00lp, as it is lighter than cnsong, will still be the best choice for Simplified Chinese users.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
baijianpeng
Joomla! Guru
Joomla! Guru
Posts: 516
Joined: Mon Mar 20, 2006 3:17 pm
Location: China
Contact:

Re: PDF fonts for central eupean languages

Post by baijianpeng » Sat Jan 05, 2008 8:46 am

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.
JoomlaGate - Chinese Joomla Users' Portal

http://www.joomlagate.com

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: PDF fonts for central eupean languages

Post by infograf768 » Sat Jan 05, 2008 9:05 am

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. :)
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

adbuster
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Wed Dec 19, 2007 12:04 pm

Re: PDF fonts for central eupean languages

Post by adbuster » Wed Oct 21, 2009 2:48 pm

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.

kelvinminn
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Dec 03, 2009 4:17 pm

Re: PDF fonts for central eupean languages

Post by kelvinminn » Mon Dec 07, 2009 4:10 pm

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

Pariya
I've been banned!
Posts: 33
Joined: Tue Jan 15, 2013 7:06 am

Re: PDF fonts for central eupean languages

Post by Pariya » Tue Jan 29, 2013 12:00 pm

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


Locked

Return to “Translations”