The Joomla! Forum ™






Post new topic Reply to topic  [ 55 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Wed Aug 08, 2007 10:10 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Jul 29, 2007 11:26 am
Posts: 46
Location: Warszawa
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.

Top
 Profile  
 
PostPosted: Fri Sep 14, 2007 10:03 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Sat Oct 15, 2005 3:56 pm
Posts: 183
Location: Toowoomba, Australia
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


Top
 Profile  
 
PostPosted: Fri Sep 14, 2007 8:38 pm 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Sun Dec 10, 2006 6:39 pm
Posts: 1125
Location: Czech Republic
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 Gallery - simple image gallery with slideshow - http://www.phoca.cz/phocagallery/
- Phoca Restaurant Menu - http://www.phoca.cz/restaurantmenudemo/


Top
 Profile  
 
PostPosted: Sat Sep 15, 2007 1:48 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Sat Oct 15, 2005 3:56 pm
Posts: 183
Location: Toowoomba, Australia
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


Top
 Profile  
 
PostPosted: Sat Sep 15, 2007 8:49 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 17234
Location: **Translation Matters**
dejavu fonts series, as well as other fonts, will be proposed on joomlacode for all users.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Tue Sep 18, 2007 7:18 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Jul 27, 2007 2:01 pm
Posts: 12
Thank you for all these codes..

_________________
Only exact URLs allowed in signature. Please read Forum Rules: viewtopic.php?f=8&t=65


Top
 Profile  
 
PostPosted: Fri Dec 28, 2007 9:40 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 17234
Location: **Translation Matters**
Forgot to post the new url for TCPDF repository

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

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Thu Jan 03, 2008 2:26 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Mon Mar 20, 2006 3:17 pm
Posts: 481
Location: China
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:
<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


Top
 Profile  
 
PostPosted: Fri Jan 04, 2008 6:25 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 17234
Location: **Translation Matters**
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 · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Fri Jan 04, 2008 6:35 am 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Mon Mar 20, 2006 3:17 pm
Posts: 481
Location: China
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


Top
 Profile  
 
PostPosted: Fri Jan 04, 2008 8:02 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 17234
Location: **Translation Matters**
baijianpeng wrote:
1. Do you mean the built in pdf font also cover Chinese when you say all langauges ?

I wrote exactly the opposite.  ;)
Quote:
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 · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Fri Jan 04, 2008 9:14 am 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Mon Mar 20, 2006 3:17 pm
Posts: 481
Location: China
I did not found  gbsn00lp there  :(

do you have a direct download link ?

_________________
JoomlaGate - Chinese Joomla Users' Portal

http://www.joomlagate.com


Top
 Profile  
 
PostPosted: Fri Jan 04, 2008 9:38 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 17234
Location: **Translation Matters**
http://joomlacode.org/gf/project/pdffon ... ge_id=3175

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Fri Jan 04, 2008 10:17 am 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Mon Mar 20, 2006 3:17 pm
Posts: 481
Location: China
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


Top
 Profile  
 
PostPosted: Fri Jan 04, 2008 10:19 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 17234
Location: **Translation Matters**
Sorry, gave you a wrong link
try http://joomlacode.org/gf/download/frsre ... sn00lp.zip

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Fri Jan 04, 2008 10:30 am 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Mon Mar 20, 2006 3:17 pm
Posts: 481
Location: China
Still got Permission Denied message.  :-[

_________________
JoomlaGate - Chinese Joomla Users' Portal

http://www.joomlagate.com


Top
 Profile  
 
PostPosted: Fri Jan 04, 2008 6:20 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Thu Aug 18, 2005 9:58 am
Posts: 10095
Location: Hillerød - Denmark
baijianpeng wrote:
Still got Permission Denied message.   :-[

Changed a setting for that package. Please try again.  :)

_________________
Ole Bang Ottosen
redCOMPONENT Community Manager http://redcomponent.com
Personligt site www.ot2sen.dk
Dansk Joomla! support websted - joomla.dk


Top
 Profile  
 
PostPosted: Sat Jan 05, 2008 12:39 am 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Mon Mar 20, 2006 3:17 pm
Posts: 481
Location: China
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


Top
 Profile  
 
PostPosted: Sat Jan 05, 2008 1:44 am 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Mon Mar 20, 2006 3:17 pm
Posts: 481
Location: China
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


Top
 Profile  
 
PostPosted: Sat Jan 05, 2008 8:34 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 17234
Location: **Translation Matters**
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 · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Sat Jan 05, 2008 8:46 am 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Mon Mar 20, 2006 3:17 pm
Posts: 481
Location: China
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


Top
 Profile  
 
PostPosted: Sat Jan 05, 2008 9:05 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 17234
Location: **Translation Matters**
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 · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Wed Oct 21, 2009 2:48 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Dec 19, 2007 12:04 pm
Posts: 4
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.


Top
 Profile  
 
PostPosted: Mon Dec 07, 2009 4:10 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Dec 03, 2009 4:17 pm
Posts: 2
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


Top
 Profile  
 
PostPosted: Tue Jan 29, 2013 12:00 pm 
I've been banned!

Joined: Tue Jan 15, 2013 7:06 am
Posts: 33
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 55 posts ]  Go to page Previous  1, 2



Who is online

Users browsing this forum: Google Adsense [Bot] and 30 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group