DPI fix in xfsettings and xfce4-settings

Brian J. Tarricone bjt23 at cornell.edu
Wed Sep 10 12:57:36 CEST 2008



On Wed, 10 Sep 2008 12:15:39 +0200 Jannis Pohlmann wrote:

> Am Wed, 10 Sep 2008 00:11:36 -0700
> schrieb "Brian J. Tarricone" <bjt23 at cornell.edu>:
> 
> > On Wed, 10 Sep 2008 08:48:13 +0200 Yves-Alexis Perez wrote:
> > 
> > > On mar, 2008-09-09 at 21:05 +0200, Jannis Pohlmann wrote:
> > > > I don't know if this is the final solution but I just committed
> > > > a fix to xfsettingsd and xfce4-settings for a DPI problem I
> > > > spotted.
> > > 
> > > Ok, here with “latest” (on sarts alpha folder, so…) xfconfd and
> > > xfce4-settings, using -1 (default) for dpi settings doesn't work.
> > > 
> > > I don't want to force them, but currently my only choice is to
> > > force them to 125 dpi (which is my config) to have correct font
> > > settings. Without that, fonts are too tiny in gtk (so I have to
> > > tune them), and even disappear in xfce website in epiphany-gecko:
> > > 
> > > http://molly.corsac.net/~corsac/xfce/
> > > 
> > > Btw, with current xfconf/xfce4-settings, using:
> > > 
> > > xfconf-query -c xsettings -p /Xft/DPI -s 125
> > > 
> > > leads to have 48 in the Appearance Settings window. So there is
> > > still some problems :)
> > > 
> > > In 4.4, when one set the dpi, it was passed “as is” to xrdb, iirc.
> > > Why is there now a scaling factor?
> > 
> > Yeah, that's what I'd like to know as well.
> 
> According to Stephan the scaling factor has to be applied because the
> DPI XSETTING has to be in pango whatever units. It was just applied
> too early (in the appearance settings) and was thus passed to xrdb in
> a wrong way. *That* should be fixed.

Yeah, this looks fine.

> 
> > The problem with the current (val * 1024) hack, by the way, is that
> > if you set it to -1, it actually sets -1024, which doesn't quite
> > work as "default".
> 
> Ha, true. I don't know if -1 will work with pango either though.

Well, it "works," and is supposed to work -- the XSettingsRegistry on
fd.o says Xft/DPI should be set to (DPI * 1024), or -1 for 'default'.
However, it doesn't match -- font sizes at Xft/DPI = -1 are quite a bit
smaller for me than when I set Xft/DPI to the DPI value reported by
'xdpyinfo' (times 1024, of course).

I filed a bug over at gtk; let's see what they say.
http://bugzilla.gnome.org/show_bug.cgi?id=551634

	-brian



More information about the Xfce4-dev mailing list