Hi,
When im using canva.text() i can print whatever i like onto the canvas but it doesnt look very appealing..
how can i use another font for canvas.text??
thanks![]()
Hi,
When im using canva.text() i can print whatever i like onto the canvas but it doesnt look very appealing..
how can i use another font for canvas.text??
thanks![]()
Hi,
See this article about PyS60 fonts.
Hope that helps![]()
these are all displaying the exact same!!!!Code:canvas.text((35,60), u'*****Main Menu*****', font= u'legend') canvas.text((35,100), u'*****Main Menu*****', font= u'normal') canvas.text((35,160), u'*****Main Menu*****', font= u'title') canvas.text((30,210), u'*****Main Menu*****', font= u'dense')
am i missing something??
edit... ** This does not work when the unicode u is in place. remove this and it works fine
Last edited by ComplexT; 2008-05-26 at 21:08. Reason: fixed
You might be missing some font files. What is your device (2nd, 3rd) and what language variant it is == do you have Chinese or Indian etc. version? In my "English" version I can see some minor difference between fonts. Not big, but some.
Btw you can also use flags, like bold and italics.
Cheers,
--jouni
Chinese phones lack certain fonts. Thus, there will be also problems if you send your application to China for Symbian certification.
About advanced (wrapped) text rendering, see this:
http://discussion.forum.nokia.com/fo...d.php?t=124666
Mikko Ohtamaa
http://mfabrik.com
http://blog.mfabrik.com