[reportlab-users] PNG bugs
Robin Becker
reportlab-users@reportlab.com
Fri, 21 Jun 2002 13:07:06 +0100
In article <Pine.LNX.4.44.0206211245080.338-100000@gemini.logilab.fr>,
Yao Sogadzi <Yao.Sogadzi@logilab.fr> writes
>I try to create a PNG files but an exception is raised.
>Jerome Alet and Romual Texier gave me some answers but i want to create
>it without install Acrobat Reader!!It is possible..
>In fact, i want to use the fonts available in my distribution (Debian)
>and use by sof(t like xpdf, gv...
>Have you got some idea ??!!
>Thanhs
>--
>Yao
goto www.adobe.com and locate the .pdb files corresponding to the fonts
you need. download these and copy into the reportlab/fonts directory.
The windows files should work if you're running a x86 unix.
The files will be called something like
Sy______.pfb
Zd______.pfb
coo_____.pfb
cob_____.pfb
cobo____.pfb
com_____.pfb
Zy______.pfb
Zx______.pfb
_a______.pfb
_ab_____.pfb
_abi____.pfb
_ai_____.pfb
_ebi____.pfb
_ei_____.pfb
_er_____.pfb
_eb_____.pfb
this mapping is used internally in ReportLab
_font2fnrMap = {
'symbol': 'Sy______',
'zapfdingbats': 'Zd______',
'helvetica': '_a______',
'helvetica-bold': '_ab_____',
'helvetica-boldoblique': '_abi____',
'helvetica-oblique': '_ai_____',
'times-bold': '_eb_____',
'times-bolditalic': '_ebi____',
'times-italic': '_ei_____',
'times-roman': '_er_____',
'courier-bold': 'cob_____',
'courier-boldoblique': 'cobo____',
'courier': 'com_____',
'courier-oblique': 'coo_____',
}
so you might be able to reduce your download.
--
Robin Becker