Improve experimental rendering with Pango

These changes fix several bugs in the experimental pango rendering code and add some missing functionality.  The change from Jonathan Anderson got discussed and basically approved in the mailing list in 2009 (http://software.1713.n2.nabble.com/libgdiplus-pango-patch-td2268439.html) but never got submitted because Jonathan moved on to other tasks.