[MWF] Fix text position on buttons (#463149)
authorEberhard Beilharz <eb1@sil.org>
Fri, 16 Dec 2011 17:09:18 +0000 (18:09 +0100)
committerEberhard Beilharz <eb1@sil.org>
Thu, 13 Mar 2014 10:40:55 +0000 (11:40 +0100)
commit85d54839fef73fff78064eeec37ffd020db602a6
tree990f6153cadfce3058c551a5d8ed84a4ea42dae2
parent060c0c67c088c3a61d7f2960843745d092f0e4a1
[MWF] Fix text position on buttons (#463149)

Vertically centered text on buttons didn't show up centered. The
referenced bug reports it on Windows. Matters were worse on Linux.
This patch tries to fix the problem on both Windows and Linux. On Linux
the positioning is improved although probably still not perfect.

This fixes Novell bug #463149
(https://bugzilla.novell.com/show_bug.cgi?id=463149).
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextRenderer.cs