Re: Wine fonts too big for their input fields.

2006-04-13 Thread Duane Clark
Brian Vincent wrote: On 4/12/06, *Duane Clark* <[EMAIL PROTECTED] > wrote: I made the attached changes to the edit test. The results when run on Win2k are a bit strange (note that I only looked for the min in the first 1024 glyphs): edit.c:807:Font Mic

Re: Wine fonts too big for their input fields.

2006-04-13 Thread Huw Davies
On Wed, Apr 12, 2006 at 03:13:43PM -0700, Duane Clark wrote: > >Fascinating. This will probably be a huge clue in working out exactly > >what Windows does here - unfortunately, at the moment, I have no idea > >what it means :-( > > > > Hmmm, well I found this: > > http://msdn.microsoft.com/libra

Re: Wine fonts too big for their input fields.

2006-04-12 Thread Duane Clark
Duane Clark wrote: Hmmm, well I found this: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/editcontrols/editcontrols.asp where is says "By default, the edit control margins are set just wide enough to accommodate the largest character horizontal ove

Re: Wine fonts too big for their input fields.

2006-04-12 Thread Duane Clark
Huw Davies wrote: On Wed, Apr 12, 2006 at 12:26:07PM -0700, Duane Clark wrote: Huw Davies wrote: Interesting, so to clarify, even a large edit control and a small Microsoft Sans Serif has a zero margin? Yep. Fascinating. This will probably be a huge clue in working out exactly what Windows

Re: Wine fonts too big for their input fields.

2006-04-12 Thread Huw Davies
On Wed, Apr 12, 2006 at 12:26:07PM -0700, Duane Clark wrote: > Huw Davies wrote: > >Interesting, so to clarify, even a large edit control and a small > >Microsoft Sans Serif has a zero margin? > > Yep. Fascinating. This will probably be a huge clue in working out exactly what Windows does here -

Re: Wine fonts too big for their input fields.

2006-04-12 Thread Duane Clark
Huw Davies wrote: On Wed, Apr 12, 2006 at 11:28:21AM -0700, Duane Clark wrote: Testing more on Win2k shows that with Tahoma, the edit field sets margins that depend on the font size. Explicitely setting "Microsoft Sans Serif" gives me the correct font, and it is indeed True Type, but both marg

Re: Wine fonts too big for their input fields.

2006-04-12 Thread Huw Davies
On Wed, Apr 12, 2006 at 11:28:21AM -0700, Duane Clark wrote: > Testing more on Win2k shows > that with Tahoma, the edit field sets margins that depend on the font > size. Explicitely setting "Microsoft Sans Serif" gives me the correct > font, and it is indeed True Type, but both margins remain z

Re: Wine fonts too big for their input fields.

2006-04-12 Thread Duane Clark
Huw Davies wrote: I assume you mean Microsoft Sans Serif not MS Sans Serif. The former is a TrueType font (micross.ttf) the latter is a bitmap font (sserife.fon). Indeed it does look like[1] we should be using Microsoft Sans Serif for MS Shell Dlg at least for non-CJK locales. You are right

Re: Wine fonts too big for their input fields.

2006-04-12 Thread Huw Davies
On Wed, Apr 12, 2006 at 10:14:58AM -0700, Duane Clark wrote: > Huw D M Davies wrote: > > > >MS Shell Dlg maps to either Microsoft Sans Serif or Tahoma depending > >on Windows version; the default wine.inf maps it to Tahoma so you > >should check whether you have tahoma.ttf installed. If in doubt a

Re: Wine fonts too big for their input fields.

2006-04-12 Thread Duane Clark
Duane Clark wrote: On the other hand, in both Win2k and WinXP, "MS Shell Dlg" seems to be mapping to "MS Sans Serif". So is having Tahoma the default really the right thing to do? And to respond to myself once again, according to: http://msdn.microsoft.com/library/default.asp?url=/library/en

Re: Wine fonts too big for their input fields.

2006-04-12 Thread Duane Clark
Duane Clark wrote: ... Most of the other characters appear to be pixel identical (though the '7' is rendered one pixel to the right of where it is on Win2k). Actually, the '7' is correct. The problem is the '8' (I had typed "6789"). Here are a couple of small images of the problem. The first,

Re: Wine fonts too big for their input fields.

2006-04-12 Thread Duane Clark
Huw D M Davies wrote: MS Shell Dlg maps to either Microsoft Sans Serif or Tahoma depending on Windows version; the default wine.inf maps it to Tahoma so you should check whether you have tahoma.ttf installed. If in doubt a +font log will tell you what Wine picks for this font. In Win2k, it is

Re: Wine fonts too big for their input fields.

2006-04-12 Thread Huw D M Davies
On Wed, Apr 12, 2006 at 08:55:09AM -0700, Duane Clark wrote: > Huw D M Davies wrote: > > > >I had some fun with this a month or two ago. See the > >test_margins_font_change test and calc_min_margin_size in the actual > >code. The deal seems to be that for 'small' edit controls > >EC_USEFONTINFO r

Re: Wine fonts too big for their input fields.

2006-04-12 Thread Duane Clark
Dan Kegel wrote: Duane Clark wrote: I also have an installer (for Xilinx) that exhibits this problem. I created a small application that creates a single line edit control (which is what the Xilinx installer uses). I notice that on Win2k the EM_GETMARGINS message returns zero for left and right

Re: Wine fonts too big for their input fields.

2006-04-12 Thread Duane Clark
Huw D M Davies wrote: I had some fun with this a month or two ago. See the test_margins_font_change test and calc_min_margin_size in the actual code. The deal seems to be that for 'small' edit controls EC_USEFONTINFO results in no margin. 'Small' is currently defined to be smaller than the ex

Re: Wine fonts too big for their input fields.

2006-04-12 Thread Robert Shearman
Huw D M Davies wrote: I had some fun with this a month or two ago. See the test_margins_font_change test and calc_min_margin_size in the actual code. The deal seems to be that for 'small' edit controls EC_USEFONTINFO results in no margin. 'Small' is currently defined to be smaller than the ex

Re: Wine fonts too big for their input fields.

2006-04-12 Thread Huw D M Davies
On Tue, Apr 11, 2006 at 04:53:20PM -0700, Duane Clark wrote: > Tony Lambregts wrote: > >We now have at least three bugs[1] where the program will not accept the > >all the characters that are required if we do not use native fonts. The > >latest bug report was reported just today and the reporter

re: Wine fonts too big for their input fields.

2006-04-12 Thread Dan Kegel
Duane Clark wrote: >I also have an installer (for Xilinx) that exhibits this problem. I >created a small application that creates a single line edit control >(which is what the Xilinx installer uses). I notice that on Win2k the >EM_GETMARGINS message returns zero for left and right messages, but on

Re: Wine fonts too big for their input fields.

2006-04-11 Thread Duane Clark
Tony Lambregts wrote: We now have at least three bugs[1] where the program will not accept the all the characters that are required if we do not use native fonts. The latest bug report was reported just today and the reporter resolved the bug as FIXED when he used Native fonts. So I have a co

Re: Wine fonts too big for their input fields.

2006-04-11 Thread Steven Edwards
On 4/11/06, Tony Lambregts <[EMAIL PROTECTED]> wrote: > Should These bugs marked a duplicates? These reports should all be pending the same bug. We really need a proper font replacement. -- Steven Edwards "There is one thing stronger than all the armies in the world, and that is an idea whose ti

Wine fonts too big for their input fields.

2006-04-11 Thread Tony Lambregts
We now have at least three bugs[1] where the program will not accept the all the characters that are required if we do not use native fonts. The latest bug report was reported just today and the reporter resolved the bug as FIXED when he used Native fonts. So I have a couple of questions. Sho