SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2009-12-01 05:38:28

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 8,904

Howto: Change DPI for fonts

This should be useful for those users experiencing super tiny fonts when using a LCD for a monitor.

First create a ~/.Xdefaults file (if you don't already have one), paste in:

Xft.dpi: 96

(change the number accordingly)

And reboot. Thats all.


Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Offline

Be excellent to each other!

#2 2009-12-01 05:52:51

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 9,027

Re: Howto: Change DPI for fonts

Also helpful for those of us seeing supersize fonts e.g. on a Mini running XF#!.

How do you come up with the right DPI?  Well, if you take the screen's horizontal pixel count and divide by the screen's physical width, that will give you a technically accurate number, but on my Mini I get 132, which is real close to the XFCE default.  96dpi, while inaccurate, feels much more comfortable on the wee netbook screen.


while ( ! ( succeed = try() ) );
We've earned a reputation as a nice, friendly community; please help us keep it that way.

Offline

#3 2009-12-01 05:56:15

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 8,904

Re: Howto: Change DPI for fonts

I believe 96 is the standard DPI in Windows tongue


Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Offline

#4 2009-12-01 06:13:38

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 9,027

Re: Howto: Change DPI for fonts

...and on a 14" diagonal 1024x768 monitor, that's real close to accurate.  I guess that feels comfortable on the tiny 8.9" widescreen because it's closer to my face?  Probably because it's a sharper display too.

I don't know why this reminds me that my old 9" Mac SE screen was one dot per point (72 points per inch).  Wow, talk about your obscure desktop publishing arcana.


while ( ! ( succeed = try() ) );
We've earned a reputation as a nice, friendly community; please help us keep it that way.

Offline

#5 2010-02-03 20:36:12

nickdutton
New Member
Registered: 2010-02-03
Posts: 2

Re: Howto: Change DPI for fonts

Hmmm, I'm having trouble getting this to work. I'm running at 118dpi here and none of the above seem to work.

Can anyone point me somewhere where I can investigate this further?

Thanks

Offline

#6 2010-02-03 20:58:54

Zwopper
The GIMP Pimp
From: Deep in The Swedish Woods
Registered: 2008-11-28
Posts: 580
Website

Re: Howto: Change DPI for fonts

I have mine in ~/.Xresources, it looks like this:

Xft.dpi: 75

As you can see, I use 75 - debian standard I think (res 1024x600 - font: Bitstream Vera Sans 12)


My artwork at deviantART   |    My Tweet   | My upcoming web page
Crea diem!
Lenovo ThinkPad E320 | 8GB | 120GB Samsung 840 SSD | Xubuntu 12.10 & #! Waldorf

Offline

#7 2010-02-03 21:26:25

Damon
Member
From: Vancouver, B.C. Canada
Registered: 2009-12-11
Posts: 27

Re: Howto: Change DPI for fonts

On a 42" LCD I'm using

add under section "device" on my nvidia configured /etc/X11/xorg.conf

Option "DPI" "120 x 120"

log out and back in and you should be gtg smile

Thought I'd add this, so if something else here doesn't work for someone they can try it.
For some strange reason the other one didn't seem to work for me.

Edit - Just noticed it doesn't seem to work for nick either, try the one above, it should work for you smile

Last edited by Damon (2010-02-03 21:31:26)

Offline

#8 2010-02-03 21:41:46

danielrmt
#! CrunchBanger
Registered: 2009-11-13
Posts: 102

Re: Howto: Change DPI for fonts

If after doing this, someone still have big/small fonts, add the following to autostart.sh or .xinitrc (my Xdefaults is never interpreted unless I run this):

xrdb -merge ~/.Xdefaults

Offline

#9 2010-02-04 00:49:31

nickdutton
New Member
Registered: 2010-02-03
Posts: 2

Re: Howto: Change DPI for fonts

danielrmt - thanks for that

xrdb -merge ~/.Xdefaults

in .config/openbox/autostart.sh did the trick nicely.

Offline

#10 2010-04-07 07:36:04

das88
Member
From: Berkeley, CA USA
Registered: 2010-04-05
Posts: 44

Re: Howto: Change DPI for fonts

@danielrmt,
Worked for me too, thanks!

Offline

#11 2011-07-11 19:47:27

anfd
New Member
Registered: 2011-07-11
Posts: 1

Re: Howto: Change DPI for fonts

But don't we have that xfce4-panel command that just didn't make it to the OB GUI?

  Hi Everyone ...   wink

Offline

#12 2011-07-12 01:16:33

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 9,027

Re: Howto: Change DPI for fonts

I'll take this one, anonymous.

Please don't bump such an old thread, especially if you have little to add to the subject.
/closed


while ( ! ( succeed = try() ) );
We've earned a reputation as a nice, friendly community; please help us keep it that way.

Offline

#13 2011-07-12 02:38:01

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 8,904

Re: Howto: Change DPI for fonts

Actually for Tips and Tricks section, I think bumping is ok.

@anfd - Xfce does have a builtin GUI for changing the font DPI however Openbox does not. Also like pvsage was saying, this is an old thread. I made it before corenominal even started working on Statler (I think) so there was no Xfce #!.


Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo