Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Setting font size

1 view
Skip to first unread message

HamRadio

unread,
Nov 28, 2009, 3:48:36 AM11/28/09
to
Hi,
I usually have:
exec /usr/bin/X -dpi 100 -depth 24 -f 75 dpms
in my /etc/X11/xinit/xserverrc but I can see that if deleting the option
"-dpi 100" the default resolution is
$ xdpyinfo | grep resolution
resolution: 114x114 dots per inch
on my notebook (a Toshiba U400 13,3") and it is 90x90 dots per inch on my
desktop (which has a Viewsonic VG2230wm monitor and an ATI HD2400PRO
card).
To set the size of the fonts is it better to pass the "-dpi" option to X
or increase/decrease the font size in the desktop environment?
Thank you in advance for answering.


--
toglimi....@toglimi.quipo.it
ANTI-SPAM: please cut "toglimi." for my real e-mail address.
p8400 Core2, Linux 2.6.31.4-rt14-2-x86_64, Debian GNU/Linux squeeze/sid
Registered Linux user #291116 http://counter.li.org

AndMagicSwordToo

unread,
Nov 28, 2009, 8:41:58 PM11/28/09
to

HamRadio <toglimi....@toglimi.quipo.it> writes:

> Hi,
> I usually have:
> exec /usr/bin/X -dpi 100 -depth 24 -f 75 dpms
> in my /etc/X11/xinit/xserverrc but I can see that if deleting the option
> "-dpi 100" the default resolution is
> $ xdpyinfo | grep resolution
> resolution: 114x114 dots per inch
> on my notebook (a Toshiba U400 13,3") and it is 90x90 dots per inch on my
> desktop (which has a Viewsonic VG2230wm monitor and an ATI HD2400PRO
> card).
> To set the size of the fonts is it better to pass the "-dpi" option to X
> or increase/decrease the font size in the desktop environment?

Which desktop environment??? Impossible to answer how and
why unless you tell us.

A lot of X clients still use resource strings. You can use
resource strings to set the font size for each X client.
This is in fact the original and only method to set font
size with older window managers. A lot of rtfm'ing in the
editres, xrdb, Xdefaults and Xresources manual pages, and
each client's documentation and app-defaults should provide
a starting point.

The dpi depends on the monitor's resolution, and X display
server and its drivers normally can manage to set the
correct dpi for the monitor/video card combination, Further,
most X clients aren't designed to check the dpi (though
certainly there's some exceptions). Re-setting the dpi can
have untoward effects when trying to render text or
graphics. And, in fact, clients and the system libraries
are designed to manage their own text and graphics display
independently with no need to migrate between various video
cards and monitors.

HTH


HamRadio

unread,
Nov 29, 2009, 7:39:39 AM11/29/09
to
Il Sat, 28 Nov 2009 20:41:58 -0500, AndMagicSwordToo ha scritto:

> Which desktop environment??? Impossible to answer how and why unless
> you tell us.

Actually I'm using KDE-4, but sometimes I do use Gnome and, when I need a
light environment, Fluxbox.
I've asked this question because the man page of my driver, radeonhd,
discourages setting dpi in xorg.conf.

--
toglimi....@toglimi.quipo.it
ANTI-SPAM: please cut "toglimi." for my real e-mail address.

P4 3.00GHz, Linux 2.6.31.6-rt19-1-x86_64 on Debian GNU/Linux squeeze/sid

0 new messages