Kanji

Martin von Loewis loewis at informatik.hu-berlin.de
Thu Dec 28 02:20:54 CET 2000


"James T. Dennis" <jadestar at idiom.com> writes:

>  I have the necessary fonts installed.  But how can I access 
>  them from Python?

Depends on your system, somewhat. I would recommend to use Tkinter;
make sure you use at least Tk 8.3 and Python 2.0. Then, when you pass
Unicode objects to the Tk functions, Tk should automatically select
the right font (or else you can always explicitly select one). If you
need to read data in other but UTF-8/16 encodings, you'll also need
the JapaneseCodecs package. Check www.python.org/sigs/i18n-sig for
details.

Regards,
Martin




More information about the Python-list mailing list