Re: Xft, RANDR and subpixel aliasing

Jim Gettys <[email protected]> Fri, 27 Feb 2004 12:06:34 -0500
Newsgroups gmane.comp.freedesktop.xlibs.general
Organization HP Labs, Cambridge Research Laboratory
Message-ID <[email protected]>
It sounds like some library isn't all up to date;
Xft and GTK also need to be doing "the right thing".

Maybe the Xft you have is stale...

                        - Jim

On Fri, 2004-02-27 at 11:29, Wout Mertens wrote:
> Hmmm.
> 
> More context: I am running kdrive, compiled for the iPAQ, from familiar
> 0.7.2 unstable12. It seems to be based on the CVS source from 20031028.
> Xft is 4.2.20030122-12, compiled by you :*)
> 
> I removed that resource, and it does change things, but only a bit.
> 
> Rotating does tell Xft to use different argb values, but only after
> restarting the application.
> 
> So now all that needs to be done is get Xft to pick up the change
> immediately?
> 
> Thanks,
> 
> Wout.
> 
> 
> Today at 11:15, Jim Gettys sat down and wrote:
> 
> > You are overriding the information the X server provides
> > with the rotation information, so getting the expected results.
> >
> > The facilities to do this without local configuration arrived
> > in XF86 4.3.
> >                              - Jim
> >
> > On Fri, 2004-02-27 at 10:57, Wout Mertens wrote:
> > > Hi,
> > >
> > > I noticed the following problem:
> > >
> > > Suppose you have an rgb flatpanel, and you want subpixel rendering.
> > >
> > > So you add 'Xft.rgba: rgb' to your resource database.
> > > This works fine.
> > >
> > > Now you use RANDR to rotate your screen. -> Xft doesn't detect this, and
> > > keeps using 'rgb', which is wrong. It should be vrgb or vbgr, depending
> > > on your rotation.
> > >
> > > Ok, so you think, I'll set 'Xft.rgba: vrgb' in my resource database.
> > > Alas, this does not work either, because for some reason, Xft only reads
> > > this resource at startup.
> > >
> > > So, what can be done about this?
> > > - Xft should check the Xft.rgba resource more often, or
> > > - Xft detects rotation somehow and automatically adjusts, obviating the
> > >   need of having to check what the current rotation is.
> > >
> > > What do you think?
> > >
> > > Wout.
> > >
> > > PS: please keep me in copy somehow, I'm not subscribed to this list,
> > >     thanks.
> > >
> > > _______________________________________________
> > > xlibs mailing list
> > > [email protected]
> > > http://freedesktop.org/mailman/listinfo/xlibs
> > --
> > Jim Gettys <[email protected]>
> > HP Labs, Cambridge Research Laboratory
> >
-- 
Jim Gettys <[email protected]>
HP Labs, Cambridge Research Laboratory