[python-win32] GDI+ text rendering screwed up

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Mar 20 02:05:02 CET 2009


I'm trying to use GDI+ (via ctypes) to draw text.
It works for some fonts but messes up with others.
Using Times, for example, it seems to be using the
glyphs for one character earlier in the code sequence,
so that "Times" comes out as "Shldr" -- except that it
uses the widths of the original characters for positioning.

Can someone please run the attached code and tell me
whether it works for them or not? And any ideas on what
I could be doing wrong to cause this?

-- 
Greg
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: win_gdip_text_ctypes.py
URL: <http://mail.python.org/pipermail/python-win32/attachments/20090320/342cef32/attachment.txt>


More information about the python-win32 mailing list