![]() |
2009-12-23
, 20:09
|
|
Posts: 529 |
Thanked: 262 times |
Joined on Dec 2008
@ Eastleigh, Hampshire, UK
|
#2
|
Originally for my applicaition 'witter' I was using the standard CellRendererText to render all the tweets. This worked well enough and rendered all languages nicely (at least all the ones I saw) Eg various asian languages, and others.
To make witter look nicer, I switched to using my own custom cell renderer which uses cairo to render text.
This however just renders little boxes where glyphs should be for anything that isn't a romanised set of characters.
After a bit of digging I read that I should be using pango, rather than cairo to render text and that it should somehow take care of it...
So I switched to getting a pangocairo.cairoContext
and using a pango.FontDescription set on a layout.
then set_text to the layout and show that.
This now renders little boxes with the hex values in. ;-(
Am I missing something obvious? How do I get back to a state of being able to render all these languages properly?
----------
N900
http://danielwould.wordpress.com
Check out Witter, a twitter client for N900
http://danielwould.wordpress.com/witter
If Witter isn't working for you, eg crashes/doesn't start, gives errors etc etc. Please run it from x-term using:
run-standalone.sh python2.5 /opt/witter/witter.py
This will generate diagnostic output. Without this I cannot help you.