[reportlab-users] Come on, i am so messed up and i need anything from u

sarah el-lawindy reportlab-users@reportlab.com
Tue, 11 Nov 2003 13:36:03 -0800 (PST)


--0-1954263328-1068586563=:30363
Content-Type: text/plain; charset=us-ascii



Marius Gedminas ,
  thanks for replying. here is the code i wrote:

    import reportlab.rl_config
    reportlab.rl_config.warnOnMissingFontGlyphs = 0 
    from reportlab.pdfbase import pdfmetrics
    from reportlab.pdfbase.ttfonts import TTFont
    from reportlab.pdfgen import canvas
    c = canvas.Canvas('t.pdf')
    pdfmetrics.registerFont(TTFont('ArabicRiyadh', 'ArabicRiyadh.ttf'))
    from reportlab.lib.fonts import addMapping
    addMapping('ArabicRiyadh', 0, 0, 'ArabicRiyadh')
    c.setFont('ArabicRiyadh', 32)
    TEST = u'تالبي'
    #temp = unicode("تالبي‏", "ISO-8859-13")
    c.drawString(100, 700,TEST.encode('utf-8'))
    c.save()
 
the output was not تالبي' at all, it another word.
by the way, i am uisng adode acrobat ME , and i used  another viewer but the same thing took place.
i tried sending the ttf file to u, but the coz of its size, the modrator of the group  send me a notification back.
thanks in advance,
sam ellawindy


---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
--0-1954263328-1068586563=:30363
Content-Type: text/html; charset=us-ascii

<DIV><BR><BR><STRONG><EM>Marius Gedminas </EM></STRONG>,<BR>&nbsp; thanks for replying. here is the code i wrote:</DIV>
<DIV><BR>&nbsp;&nbsp;&nbsp; import reportlab.rl_config<BR>&nbsp;&nbsp;&nbsp; reportlab.rl_config.warnOnMissingFontGlyphs = 0 <BR>&nbsp;&nbsp;&nbsp; from reportlab.pdfbase import pdfmetrics<BR>&nbsp;&nbsp;&nbsp; from reportlab.pdfbase.ttfonts import TTFont<BR>&nbsp;&nbsp;&nbsp; from reportlab.pdfgen import canvas<BR>&nbsp;&nbsp;&nbsp; c = canvas.Canvas('t.pdf')<BR>&nbsp;&nbsp;&nbsp; pdfmetrics.registerFont(TTFont('ArabicRiyadh', 'ArabicRiyadh.ttf'))<BR>&nbsp;&nbsp;&nbsp; from reportlab.lib.fonts import addMapping<BR>&nbsp;&nbsp;&nbsp; addMapping('ArabicRiyadh', 0, 0, 'ArabicRiyadh')<BR>&nbsp;&nbsp;&nbsp; c.setFont('ArabicRiyadh', 32)<BR>&nbsp;&nbsp;&nbsp; TEST = u'تالبي'<BR>&nbsp;&nbsp;&nbsp; #temp = unicode("تالبي‏", "ISO-8859-13")<BR>&nbsp;&nbsp;&nbsp; c.drawString(100, 700,TEST.encode('utf-8'))<BR>&nbsp;&nbsp;&nbsp; c.save()</DIV>
<DIV>&nbsp;</DIV>
<DIV>the output was not تالبي' at all, it another word.<BR>by the way, i am uisng adode acrobat ME , and i used&nbsp; another viewer but the same thing took place.<BR>i tried sending the ttf file to u, but the coz of its size, the modrator of the group &nbsp;send me a notification back.<BR>thanks in advance,<BR>sam ellawindy</DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://antispam.yahoo.com/whatsnewfree">Protect your identity with Yahoo! Mail AddressGuard</a>
--0-1954263328-1068586563=:30363--