DPI fix in xfsettings and xfce4-settings

Jannis Pohlmann jannis at xfce.org
Wed Sep 10 12:15:39 CEST 2008


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.

> 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.

  - Jannis



More information about the Xfce4-dev mailing list