96 dots per inch

As far back as I can remember, Puppy has had this setting in /root/.Xresources:

Xft.dpi: 78

However, Ubuntu and some other major distros have it set to "96". This lower setting in Puppy means that some desktops and applications display with smaller fonts than we would like. Probably this situation occurs in Precise Puppy, when we install any Qt, KDE or GTK3 apps from the Ubuntu repositories.

Our GTK2 setup in Puppy, plus JWM, SeaMonkey and other apps have been designed to have reasonably sized fonts with the "Xft.dpi: 78" setting.

I am planning to change it to "Xft.dpi: 96". This will be in Woof, so all future pups will have it as default.

As a consequence, GTK2 and some other apps may need to have their font size settings reduced, so as to look the same as before. This may require changes to some PETs, such as the files /usr/share/themes/*/gtk-2.0/gtkrc.

Also, I'm not sure, but I think that sub-pixel hinting will work better with the higher DPI value. Meaning that fonts will look better.

If anyone has any thoughts on this, kindly let me know.


Posted on 21 Dec 2012, 19:43


Comments:

Posted on 21 Dec 2012, 24:12 by pemasu
Re: 96 dots per inch
General font size 10 seems to be needed as compensation, at least for Deja Vu Sans.

At the 3builddistro stage when woofing, choose font size 10 when it is asked for Rox-Filer

Otherwise in the distro:
/root/.config/rox.sourceforge.net/ROX-Filer/Options
Change to:
<Option name="label_font">DejaVu Sans 10</Option>
...or use rox right click over Desktop icon and choose Rox-Filer > Options and change the font size there.

For gtk themes. I have used Iguleder`s recipe in 3builddistro: For font 10 during 3builddistro stage at woofing:
echo "# -- THEME AUTO-WRITTEN DO NOT EDIT

include \"/usr/share/themes/${GTKTHEME}/gtk-2.0/gtkrc\"
style \"user-font\" {
font_name = \"DejaVu Sans 10\"
}

widget_class \"*\" style \"user-font\"

gtk-font-name=\"DejaVu Sans 10\"
include \"/root/.gtkrc.mine\"" > rootfs-complete/root/.gtkrc-2.0


Jwm themes need change for font size to the
/root/.jwm/themes/*-jwmrc

Just brainstorming before Christmas.


Posted on 22 Dec 2012, 16:47 by ozsouth
I use 84
I always set my dpi to 84 - improves viewability, but 96 usually means adjusting all fonts.


Posted on 22 Dec 2012, 20:39 by bark_bark_bark
Bad Change
As I heard on the forums, this change may effect netbooks harshly. I want to be able to USE puppy on my netbook.


Posted on 22 Dec 2012, 22:38 by Iguleder
Re: Bad Change
Using 96 DPI on Asus Eee PC 1001PX for almost a year, even on x86_64. No issues here - in fact, fonts are smoother (hinting simply works better with this DPI, with DejaVu fonts).

Most netbooks have Intel GPUs and this model is quite old ... so I really don't understand how this DPI change could cause problems.


Posted on 25 Dec 2012, 5:12 by disciple
native DPI
Wouldn't it be best if people actually used the native DPI of their monitor?


Posted on 31 Dec 2012, 8:37 by 01micko
ntfs-3g
Hi Barry

I recompiled the latest ntfs-3g statically using your instructions (designed for the initrd). It *should* now mount compressed ntfs filesystems RW. Mounts normal ntfs fine. I don't have a compressed filesystem to test.

See:

http://murga-linux.com/puppy/viewtopic.php?p=674296#674296


Posted on 2 Jan 2013, 20:58 by aarf
correct display for title bar fonts
posted some stuff about displaying fonts correctly in the title bar at http://puppylinux.info/topic/torrent-for-lang_pack_all-09sfs-by-shinobar#post-5464