[reportlab-users] Fonts

Porsev Eugene reportlab-users@reportlab.com
Fri, 16 Jan 2004 17:31:12 +0500


This is a multi-part message in MIME format.

------=_NextPart_000_02AC_01C3DC56.89944680
Content-Type: text/plain;
	charset="koi8-r"
Content-Transfer-Encoding: quoted-printable

Hello, I'm new to Reportlab - so don't be very strict to me.

I'm trying to convert quite simple HTML into PDF using Paragraph and =
Para and I have problems=20
with cyrillic fonts. After I register it by:

registerFont(TTFont('Courier','cour.ttf'))
registerFont(TTFont('Courier-Oblique','couri.ttf'))
registerFont(TTFont('Courier-Bold','courbd.ttf'))
registerFont(TTFont('Courier-BoldOblique','courbi.ttf'))

the Paragraph works properly, but when I use Para the document becomes a =
mess.

Or tell me how can I make tags <ul> <ol> to be parsed using Paragraph.

Thanks in advance.
______________________________________________
=F3 =D5=D7=C1=D6=C5=CE=C9=C5=CD, =F0=CF=D2=D3=C5=D7 =
=E5=D7=C7=C5=CE=C9=CA
=CB=CF=CD=D0=C1=CE=C9=D1 NAUMEN
eporsev@naumen.ru
------=_NextPart_000_02AC_01C3DC56.89944680
Content-Type: text/html;
	charset="koi8-r"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dkoi8-r">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>
<DIV><FONT face=3DArial size=3D2>Hello, I'm new to Reportlab - so don't =
be very=20
strict to me.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I'm trying to convert quite simple HTML =
into PDF=20
using Paragraph and Para and I have problems </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>with cyrillic fonts. After I register =
it=20
by:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>registerFont(TTFont('Courier','cour.ttf'))<BR>registerFont(TTFon=
t('Courier-Oblique','couri.ttf'))<BR>registerFont(TTFont('Courier-Bold','=
courbd.ttf'))<BR>registerFont(TTFont('Courier-BoldOblique','courbi.ttf'))=
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>the Paragraph works properly, but when =
I use Para=20
the document becomes a mess.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Or tell me how can I make tags=20
&lt;ul&gt;&nbsp;&lt;ol&gt; to be parsed&nbsp;using =
Paragraph.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in advance.</FONT></DIV></DIV>
<DIV><FONT face=3DArial =
size=3D2>______________________________________________<BR>=F3=20
=D5=D7=C1=D6=C5=CE=C9=C5=CD, =F0=CF=D2=D3=C5=D7 =
=E5=D7=C7=C5=CE=C9=CA<BR>=CB=CF=CD=D0=C1=CE=C9=D1 NAUMEN<BR><A=20
href=3D"mailto:eporsev@naumen.ru">eporsev@naumen.ru</A></FONT></DIV></BOD=
Y></HTML>

------=_NextPart_000_02AC_01C3DC56.89944680--