[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> thanks for replying. here is the code i wrote:</DIV>
<DIV><BR> import reportlab.rl_config<BR> reportlab.rl_config.warnOnMissingFontGlyphs = 0 <BR> from reportlab.pdfbase import pdfmetrics<BR> from reportlab.pdfbase.ttfonts import TTFont<BR> from reportlab.pdfgen import canvas<BR> c = canvas.Canvas('t.pdf')<BR> pdfmetrics.registerFont(TTFont('ArabicRiyadh', 'ArabicRiyadh.ttf'))<BR> from reportlab.lib.fonts import addMapping<BR> addMapping('ArabicRiyadh', 0, 0, 'ArabicRiyadh')<BR> c.setFont('ArabicRiyadh', 32)<BR> TEST = u'تالبي'<BR> #temp = unicode("تالبي", "ISO-8859-13")<BR> c.drawString(100, 700,TEST.encode('utf-8'))<BR> c.save()</DIV>
<DIV> </DIV>
<DIV>the output was not تالبي' at all, it another word.<BR>by the way, i am uisng adode acrobat ME , and i used 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 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--