Take monospace fonts into account in default font selectionalgorithm.
Huw D M Davies
h.davies1 at physics.ox.ac.uk
Thu Aug 19 06:06:49 CDT 2004
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])
> +
> + if((csi.fs.fsCsb[0] & family->FirstFace->fs.fsCsb[0]) &&
> + (family->FirstFace->fixed_width == (lf.lfPitchAndFamily & MONO_FONT ? TRUE : FALSE)))
> if(family->FirstFace->scalable || can_use_bitmap)
> break;
> }
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?
Huw.
--
Huw Davies
huw at codeweavers.com
More information about the wine-devel
mailing list