It is currently Sun Feb 12, 2012 8:28 pm

All times are UTC + 2 hours




Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Sun Jun 03, 2007 10:06 am 
Offline

Joined: Tue Oct 24, 2006 10:43 am
Posts: 591
for "full" chinese interface you have to download the translationfile from tinyforge: http://tinyforge.org/projects/chinese/

Would be great if you contribute to it because the translation is NOT finished and there might be some mistakes in it. I'm working further in it.

knerz


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 18, 2007 3:09 pm 
Offline

Joined: Mon Apr 16, 2007 4:25 pm
Posts: 30
on linux 4.2.0-rc2 to use Verdana fonts

1) install package ttf-ms-fonts OR install verdana.ttf into /usr/lib/python2.5/site-packages/reportlab/fonts/

2) edit bin/report/render/rml2pdf/__init__.py
add

from reportlab.lib.fonts import addMapping
from reportlab.pdfbase import pdfmetrics
from reportlab.pdfbase.ttfonts import TTFont
from reportlab.pdfbase.cidfonts import CIDFont, findCMapFile
from reportlab.lib.fonts import addMapping


pdfmetrics.registerFont(TTFont('verdana','verdana.ttf'))

for facename in ['verdana']:
addMapping(facename, 0, 0, facename) #normal
addMapping(facename, 0, 1, facename) #italic
addMapping(facename, 1, 0, facename) #bold
addMapping(facename, 1, 1, facename) #italic and bold

3)edit your <file>.rml and change any fontName="" to fontName="Verdana"


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 05, 2007 11:29 am 
Offline

Joined: Tue Oct 24, 2006 10:43 am
Posts: 591
for version>4.x.x you can look up searched font-folders in /usr/lib/python2.5/site-packages/reportlab/rl_config.py

I copied my ttf-files to:

/usr/share/fonts/truetype

knerz


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 19, 2007 5:45 pm 
Offline

Joined: Tue Oct 24, 2006 10:43 am
Posts: 591
although it's not ment for asian fonts here's another thread dealing with UTF-8 reporting:

http://tinyerp.org/forum/viewtopic.php?p=16156#16156

and here is the link with the solution presented in the above mentioned thread:

http://nusunt.eu/TinyERP_Ultimate_guide ... -8_Reports

knerz


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 09, 2008 8:06 am 
Offline

Joined: Thu Sep 04, 2008 9:07 am
Posts: 21
Location: Shenzhen, China
The nusunt link now 404s.

_________________
Regards, Martin


Top
 Profile  
 
 Post subject: Upgrade standard release to handle CJKV?
PostPosted: Thu Oct 16, 2008 4:26 pm 
Offline

Joined: Thu Sep 04, 2008 9:07 am
Posts: 21
Location: Shenzhen, China
Can these changes be rolled into the main release, perhaps as a module? I have just upgraded, and now I need to make these changes again.

_________________
Regards, Martin


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

All times are UTC + 2 hours


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

Search for:

Protected by Anti-Spam ACP