Rendering text question (context is MSWin UI Automation)

Boris Borcic bborcic at gmail.com
Wed Jan 24 06:29:09 EST 2007


Chris Mellon wrote:
 > On 1/23/07, Boris Borcic <bborcic at gmail.com> wrote:
 >> ...A simple -
 >> with Tkinter or otherwise - way to wrap access to the MS Windows UI text
 >> rendering engine, as a function that would return a picture of rendered text,
 >> given a string, a font, a size and colors ?
...
 >
 > There are actually several different text rendering methods (and 2 or
 > more totally different engines) and they will give different results,
 > so if you want a fully generic solution that could be quite difficult.
 > However, it sounds like this is for a specific purpose.

Indeed.

 >
 > ...You could also use
 > wxPython, which uses what will probably be the right API and will take
 > less code than win32 will. I'd suggest this if you aren't familiar
 > with the win32 API.

Thanks for your guidance and quick code, I am going to try that.

Boris Borcic




More information about the Python-list mailing list