* X11Keyboard.cs : set XIM font size to somewhat reasonable
number (ideally the input textbox size, but that could be
too messy).
svn path=/trunk/mcs/; revision=103809
+2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
+
+ * X11Keyboard.cs : set XIM font size to somewhat reasonable
+ number (ideally the input textbox size, but that could be
+ too messy).
+
2008-05-22 Jonathan Pobst <monkey@jpobst.com>
* ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
{
IntPtr list;
int count;
- IntPtr fontSet = XCreateFontSet (display, "*", out list, out count, IntPtr.Zero);
+ Control c = Control.FromHandle (window);
+ string xlfd = String.Format ("-*-*-*-*-*-*-{0}-*-*-*-*-*-*-*", (int) c.Font.Size);
+ IntPtr fontSet = XCreateFontSet (display, xlfd, out list, out count, IntPtr.Zero);
XPoint spot = new XPoint ();
spot.X = 0;
spot.Y = 0;