Around 17 o'clock on Jun 2, Dr Andrew C Aitchison wrote:

> You can use the DisplaySize option to tell the X server what size the 
> screen is. It will then tell any app that asks the horizontal and 
> vertical pixel pitches (dpi), but this confuses sufficiently many apps
> that by default we don't set this from the DDC info.
> The RENDER font system could probably cope, but most apps don't get 
> anything sensible out of the old font renderer.

Xft assumes that pixels are square; users and applications generally 
expect the dpi to be equal along each axis, so Xft plays along.

Fixing that would be pretty easy; I could add an 'aspect ratio' field to 
Xft that could be configured per display.  Certainly the underlying 
rasterizers are more than willing to draw with non-square pixels.

You can actually do something similar, but not quite the same by setting a 
matrix when rendering text.  The problem with using a matrix is that the 
matrix is applied after the hints; that makes the characters always appear 
the same, independent of the matrix, but makes the transformed characters 
no longer aligned to pixel boundaries.  Disabling hinting would at least 
make them appear no worse under transformation.

I've tried this with Xft2 and (after fixing several bugs), it works 
just fine.

I think I'll add an aspect ratio field to allow the right thing to 
happen.

Keith Packard        XFree86 Core Team        HP Cambridge Research Lab


_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to