PDF fonts for central eupean languages
Moderator: wendhausen
- pajonkhfat
- Joomla! Apprentice
- Posts: 46
- Joined: Sun Jul 29, 2007 11:26 am
- Location: Warszawa
Re: PDF fonts for central eupean languages
Works perfectly. Big thanx.
One trick - you should take care about caps i fontfilename.php
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.
-
- Joomla! Enthusiast
- Posts: 183
- Joined: Sat Oct 15, 2005 3:56 pm
- Location: Toowoomba, Australia
- Contact:
Re: PDF fonts for central eupean languages
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
http://dejavu.sourceforge.net/wiki/index.php/Main_Page
Kind regards,
Mame du Bois
- H13
- Joomla! Ace
- Posts: 1545
- Joined: Sun Dec 10, 2006 6:39 pm
- Location: Czech Republic
- Contact:
Re: PDF fonts for central eupean languages
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
- Phoca Gallery - powerful image gallery
- Phoca Restaurant Menu - https://www.phoca.cz/phocamenu
- Phoca Download - download manager for Joomla
-
- Joomla! Enthusiast
- Posts: 183
- Joined: Sat Oct 15, 2005 3:56 pm
- Location: Toowoomba, Australia
- Contact:
Re: PDF fonts for central eupean languages
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
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
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: PDF fonts for central eupean languages
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
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
- mariahayek
- Joomla! Apprentice
- Posts: 12
- Joined: Fri Jul 27, 2007 2:01 pm
- Contact:
Re: PDF fonts for central eupean languages
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
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: PDF fonts for central eupean languages
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
- baijianpeng
- Joomla! Guru
- Posts: 516
- Joined: Mon Mar 20, 2006 3:17 pm
- Location: China
- Contact:
Re: PDF fonts for central eupean languages
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.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>
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.
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: PDF fonts for central eupean languages
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.
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
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
- baijianpeng
- Joomla! Guru
- Posts: 516
- Joined: Mon Mar 20, 2006 3:17 pm
- Location: China
- Contact:
Re: PDF fonts for central eupean languages
1. Do you mean the built in pdf font also cover Chinese when you say all langauges ?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.
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.
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: PDF fonts for central eupean languages
I wrote exactly the opposite.baijianpeng wrote: 1. Do you mean the built in pdf font also cover Chinese when you say all langauges ?
The included font freesans covers many languages (all European + some more) but not all.this is why we can't release with trunk a font that would cover the needs of all languages.
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
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
- baijianpeng
- Joomla! Guru
- Posts: 516
- Joined: Mon Mar 20, 2006 3:17 pm
- Location: China
- Contact:
Re: PDF fonts for central eupean languages
I did not found gbsn00lp there
do you have a direct download link ?
do you have a direct download link ?
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: PDF fonts for central eupean languages
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
- baijianpeng
- Joomla! Guru
- Posts: 516
- Joined: Mon Mar 20, 2006 3:17 pm
- Location: China
- Contact:
Re: PDF fonts for central eupean languages
Unfortunately, I got Permission Denied message even after I login in.
maybe you can send those gbsn00lp files to my e-mail box?
Thanks.
maybe you can send those gbsn00lp files to my e-mail box?
Thanks.
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: PDF fonts for central eupean languages
Sorry, gave you a wrong link
try http://joomlacode.org/gf/download/frsre ... sn00lp.zip
try http://joomlacode.org/gf/download/frsre ... sn00lp.zip
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
- baijianpeng
- Joomla! Guru
- Posts: 516
- Joined: Mon Mar 20, 2006 3:17 pm
- Location: China
- Contact:
Re: PDF fonts for central eupean languages
Still got Permission Denied message.
- ot2sen
- Joomla! Master
- Posts: 10381
- Joined: Thu Aug 18, 2005 9:58 am
- Location: Hillerød - Denmark
- Contact:
Re: PDF fonts for central eupean languages
Changed a setting for that package. Please try again.baijianpeng wrote: Still got Permission Denied message. :-[
Ole Bang Ottosen
Dansk frivillig Joomla! support websted - joomla.dk
OpenTranslators Core Team opentranslators.org
Dansk frivillig Joomla! support websted - joomla.dk
OpenTranslators Core Team opentranslators.org
- baijianpeng
- Joomla! Guru
- Posts: 516
- Joined: Mon Mar 20, 2006 3:17 pm
- Location: China
- Contact:
Re: PDF fonts for central eupean languages
Thanks to ot2sen: I got it this time.
I will test it soon and let you know the result.
I will test it soon and let you know the result.
- baijianpeng
- Joomla! Guru
- Posts: 516
- Joined: Mon Mar 20, 2006 3:17 pm
- Location: China
- Contact:
Re: PDF fonts for central eupean languages
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.
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.
You do not have the required permissions to view the files attached to this post.
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: PDF fonts for central eupean languages
Thanks for the test.
gbsn00lp, as it is lighter than cnsong, will still be the best choice for Simplified Chinese users.
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
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
- baijianpeng
- Joomla! Guru
- Posts: 516
- Joined: Mon Mar 20, 2006 3:17 pm
- Location: China
- Contact:
Re: PDF fonts for central eupean languages
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.
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.
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: PDF fonts for central eupean languages
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.
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
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- Joomla! Fledgling
- Posts: 4
- Joined: Wed Dec 19, 2007 12:04 pm
Re: PDF fonts for central eupean languages
HeiH13 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/
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.
-
- Joomla! Fledgling
- Posts: 2
- Joined: Thu Dec 03, 2009 4:17 pm
Re: PDF fonts for central eupean languages
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
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
-
- I've been banned!
- Posts: 33
- Joined: Tue Jan 15, 2013 7:06 am
Re: PDF fonts for central eupean languages
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
and i cant solved it , i use the structure that valid in post but it didnt solved