On jeu., 2015-05-21 at 18:51 +0200, Vincent Bernat wrote: > ❦ 21 mai 2015 18:15 +0200, Yves-Alexis Perez <[email protected]> : > > >> >> xfconf-query -c xsettings -lv | grep -i Xft.dpi > >> >> > >> > xfconf-query -c xsettings -lv | grep -i Xft.dpi > >> > /Xft/DPI -1 > >> > > >> > Also: > >> > > >> > xdpyinfo|grep resolution > >> > resolution: 177x176 dots per inch > >> > >> I don't know how to configure that in xfce, but if you can arrange to > >> change the value of /Xft/DPI to 181248 (177*1024), it may help > >> Chromium. > > > > It might help chromium (it doesn't look it it, though), but it'll break > > everything else. /Xft/DPI is in DPI, not in DPI*1024. See > > It's in DPI*1024 but maybe XFCE is presenting a rectified value. See: > http://www.freedesktop.org/wiki/Specifications/XSettingsRegistry/ > > You can install xsettingsd and use "dump_xsettings" to get the actual > value.
Ok so you're right, the xfconf property /Xft/DPI is in dpi, but it correctly sets the xsetting Xft/DPI to 1024*dpi: corsac@scapa: xfconf-query -c xsettings -p /Xft/DPI 177 corsac@scapa: dump_xsettings |grep Xft/DPI Xft/DPI 181248 corsac@scapa: xfconf-query -c xsettings -p /Xft/DPI -r corsac@scapa: xfconf-query -c xsettings -p /Xft/DPI Property "/Xft/DPI" does not exist on channel "xsettings". corsac@scapa: dump_xsettings |grep Xft/DPI Xft/DPI 179200 (so actually it's more like 175 dpi but that doesn't matter much). > Do you have GDK_SCALE or GDK_DPI_SCALE environment variable? They should > not be used by Chromium (not using GDK/GTK for rendering) but are used > by other GTK apps and may explain the difference (they may also be > present in xsettings, but you would see them with dump_xsettings). corsac@scapa: printenv |grep -c GDK 0 dump_xsettings|grep -ci GDK 0 So as far as I can tell the Xft/DPI xsettings is correctly set (whether I'm overriding the DPI in xfconf or not). Regards, -- Yves-Alexis
signature.asc
Description: This is a digitally signed message part

