Re: How to change Awesome WM's DPI from 96 to 120?
Hi, On 20.02.2013 13:41, WANG Chao wrote: [...] After some work, any X client's DPI is 120 except Awesome WM itself. Fonts on taglist/tasklist/wibox/naughty/... still uses DPI 96. How are you setting the DPI everywhere else? [...] Does anyone know how to setup the Awesome WM's DPI? Any comment is welcome! Well, dunno. We are just using Pango. And I guess that Pango wants to be told about the DPI value it should use. However, I have no idea which of the various Gnome parts normally does this, all of which we don't use (gtk?). If you want to do this by hand (and are using awesome 3.5), add this to your rc.lua (and tell me if this actually works): require(lgi).PangoCairo.FontMap.get_default():set_resolution(120) Cheers, Uli -- - He made himself, me nothing, you nothing out of the dust - Er machte sich mir nichts, dir nichts aus dem Staub -- To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.
Re: How to change Awesome WM's DPI from 96 to 120?
On Thu, Feb 21, 2013 at 03:42:14PM +0100, Uli Schlachter wrote: On 20.02.2013 13:41, WANG Chao wrote: [...] After some work, any X client's DPI is 120 except Awesome WM itself. Fonts on taglist/tasklist/wibox/naughty/... still uses DPI 96. How are you setting the DPI everywhere else? Shouldn't one set this via the xorg.conf? I think there was an option to set the DPI for each screen, which should be determined usually automaticaly? Regards, Andre -- Andre Klärner smime.p7s Description: S/MIME cryptographic signature
Re: How to change Awesome WM's DPI from 96 to 120?
2013/2/20 WANG Chao wangchao19890...@gmail.com: Fonts on taglist/tasklist/wibox/naughty/... still uses DPI 96. Isn't this a matter of selecting a font with higher DPI? -- To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.
Re: How to change Awesome WM's DPI from 96 to 120?
Le 21 février 2013 à 18:23 CET, Andre Klärner a écrit : On Thu, Feb 21, 2013 at 03:42:14PM +0100, Uli Schlachter wrote: On 20.02.2013 13:41, WANG Chao wrote: [...] After some work, any X client's DPI is 120 except Awesome WM itself. Fonts on taglist/tasklist/wibox/naughty/... still uses DPI 96. How are you setting the DPI everywhere else? Shouldn't one set this via the xorg.conf? I think there was an option to set the DPI for each screen, which should be determined usually automaticaly? AFAIK it's global per display, and I've had some trouble setting it from xorg.conf. However you can set it from your .xinitrc using xrandr --fbmm. Here's an example to set it to the actual DPI of your display instead of a hard-coded value of 96 DPI: xrandr --fbmm `xrandr | sed -n '/ connected / {s/.* \([0-9]\+\)mm x \([0-9]\+\)mm/\1x\2/p;q}'` rant against=Xorg However, you won't need this if you're using the NVIDIA proprietary driver, because they're doing The Right Thing™: the DPI is set to match the DPI actually reported by your screen. Other Xorg drivers (nouveau, intel, radeon or whatever), OTOH, read the actual DPI from the screen, and then discard it and set it to 96 dpi to be consistent with Windows. But hey, don't worry, it's NOTABUG (https://bugs.freedesktop.org/show_bug.cgi?id=23705). /rant Cheers, -- Thomas/Schnouki pgpXAjNRujv_7.pgp Description: PGP signature
Re: How to change Awesome WM's DPI from 96 to 120?
Hi all You can set dpi of your screen at least in 4 ways: 1. Xorg.conf - setting the dpi value or the screen size in (mm) 2. In .Xresources or .Xdefaults 3. Using the command *xrandr* 4. When stating X with *startx* using the arguments -dpi Relative to awesome I don't know... I would like to now... But after all I'm disappointed... I've 2 laptops now, and I was expecting that setting the correct DPI in each laptop they would display the same font size... for example in *urxvt* where you set the font size in pt units... But this doesn't happens... Actually I was expecting that the fonts displayed in the screen had +- the same size of the ones printed on a paper... But I can't achieve that. Anyone can explain this? Thanks? And relative to awesome wm I would be very happy if there was an working solution. Thanks __ Cumprimentos André Pinhal