Re: Take monospace fonts into account in default font selectionalgorithm.

2004-08-23 Thread Mike Hearn
Mike Hearn wrote: This also wouldn't work as you expect. The way to create a fixed pitch font is to use FIXED_PITCH not MONO_FONT. Which app was setting this flag? There wasn't one, I assumed MONO_FONT meant monospace, which is what I was trying to stop Wine selecting. I didn't have MSDN handy a

Re: Take monospace fonts into account in default font selectionalgorithm.

2004-08-19 Thread Mike Hearn
On Thu, 2004-08-19 at 12:06 +0100, Huw D M Davies wrote: > This also wouldn't work as you expect. The way to create a fixed > pitch font is to use FIXED_PITCH not MONO_FONT. Which app was > setting this flag? There wasn't one, I assumed MONO_FONT meant monospace, which is what I was trying to st

Re: Take monospace fonts into account in default font selectionalgorithm.

2004-08-19 Thread Huw D M Davies
On Sat, Aug 07, 2004 at 04:20:11PM +0100, Mike Hearn wrote: > @@ -1717,9 +1719,12 @@ > } > } > > +/* match on charset and style */ > if(!family) { > for(family = FontList; family; family = family->next) { > - if(csi.fs.fsCsb[0] & family->FirstFace->fs.fsCsb[0]

Re: Take monospace fonts into account in default font selectionalgorithm.

2004-08-07 Thread Alexandre Julliard
Mike Hearn <[EMAIL PROTECTED]> writes: > On Sat, 2004-08-07 at 23:16 +0900, Dmitry Timoshkov wrote: >> This can't work because instead of logical boolean results you compare >> binary flags which are different: >> >> #define FT_FACE_FLAG_FIXED_WIDTH ( 1L << 2 ) >> >> #define MONO_FONT

Re: Take monospace fonts into account in default font selectionalgorithm.

2004-08-07 Thread Dmitry Timoshkov
"Mike Hearn" <[EMAIL PROTECTED]> wrote: > +(*insertface)->fixed_width = ft_face->face_flags & > FT_FACE_FLAG_FIXED_WIDTH; ... > - if(csi.fs.fsCsb[0] & family->FirstFace->fs.fsCsb[0]) > + if((csi.fs.fsCsb[0] & family->FirstFace->fs.fsCsb[0]) && > + (family->Firs