LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-10-2008, 02:38 PM   #1
reikyv
Member
 
Registered: Oct 2007
Location: Malaysia
Distribution: Slackware
Posts: 80

Rep: Reputation: 15
Font Size Problem


I am running Slackware 12.1 on a Dell Latitude D630 laptop, and I am using OpenBox as my window manager.

I found the font size of some applications (e.g. Firefox, Thunderbird, Pidgin, etc) are too big (I mean the menu button, title etc), but OpenOffice is okay.

I found some guide here but manually startx with this command:
$ startx -- -dpi 72

And this temporary solve my problem.

How can I add this permanently to my xorg.conf? So I can type 'startx' instead of 'startx -- -dpi 72' everytime I start my gui?

Attached is my current xorg.conf file:

Code:
Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	RgbPath      "/usr/share/X11/rgb"
	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "/usr/share/fonts/TTF"
	FontPath     "/usr/share/fonts/OTF"
	FontPath     "/usr/share/fonts/Type1"
	FontPath     "/usr/share/fonts/misc"
	FontPath     "/usr/share/fonts/75dpi/:unscaled"
EndSection

Section "Module"
	Load  "dri"
	Load  "glx"
	Load  "xtrap"
	Load  "extmod"
	Load  "record"
	Load  "GLcore"
	Load  "dbe"
	Load  "freetype"
	Load  "type1"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option       "XkbModel"  "latitude"
	Option       "XkbLayout"  "us"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
	#DisplaySize	  300   190	# mm
	Identifier   "Monitor0"
	VendorName   "AUO"
	ModelName    "1347"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"            	# [<bool>]
        #Option     "SWcursor"           	# [<bool>]
        #Option     "ColorKey"           	# <i>
        #Option     "CacheLines"         	# <i>
        #Option     "Dac6Bit"            	# [<bool>]
        #Option     "DRI"                	# [<bool>]
        #Option     "NoDDC"              	# [<bool>]
        #Option     "ShowCache"          	# [<bool>]
        #Option     "XvMCSurfaces"       	# <i>
        #Option     "PageFlip"           	# [<bool>]
	Identifier  "Card0"
	Driver      "intel"
	VendorName  "Intel Corporation"
	BoardName   "Mobile GM965/GL960 Integrated Graphics Controller"
	BusID       "PCI:0:2:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	DefaultDepth 24
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection
Thanks.
 
Old 05-10-2008, 02:45 PM   #2
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Add it to the defaultserverargs line of /usr/bin/startx.

You should read daedra's post at http://www.linuxquestions.org/questi...n-12.1-640468/

Brian
 
Old 05-11-2008, 12:46 AM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Another way:
http://mythtv.org/wiki/index.php/Display_Size
 
Old 05-11-2008, 02:36 AM   #4
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,683

Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
Can you post a screenshot?
 
Old 05-11-2008, 02:48 AM   #5
reikyv
Member
 
Registered: Oct 2007
Location: Malaysia
Distribution: Slackware
Posts: 80

Original Poster
Rep: Reputation: 15
Hi,

Here is the screenshot, I am reading your guide that suggest by BCarey. I have also tried the way Dugan suggested by calculated my screen size and add it to /etc/X11/xorg.conf, but it doesn't helps.

Picture 1
Picture 2

Code:
Section "Monitor"
	#DisplaySize	  300   190	# mm
	DisplaySize  325 229
	Identifier   "Monitor0"
	VendorName   "AUO"
	ModelName    "1347"
EndSection
 
Old 05-11-2008, 02:59 AM   #6
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 510

Rep: Reputation: 53
The font size of menu buttons in the mentioned applications can be adjusted in your .gtkrc.mine like this:

Code:
style "user-font" {
        font_name = "Bitstream Vera Sans 8"
}

widget_class "*" style "user-font"
Or: (I've got both, forgot which one sets what exactly.)

Code:
gtk-font-name="Bitstream Vera Sans 8"
This affects the font size and font choice in Gtk-family based applications - namely Firefox, Thunderbird, Pidgin, Gimp, filemanagers like Thunar, PcManFM, Nautilus and so on.

Don't put it into .gtkrc-2.0 - usally, config application from Gnome or theme switcher tools put their options in there and overwrite yours.

The (window?) title font size is adjusted by your windowmanager, if you mean those "titles".

(And wasn't 72 dpi the default xserver setting anyway?)
 
Old 05-11-2008, 03:24 AM   #7
reikyv
Member
 
Registered: Oct 2007
Location: Malaysia
Distribution: Slackware
Posts: 80

Original Poster
Rep: Reputation: 15
Hi Su-Shee,

By adding .gtkrc.mine into my home directory doesn't solve my problem.

I follow Daedra's guide, and everything is fine now. ;-)

Have a look:

screenshot

Thanks for the help guys, ;-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slack 11.0 Font Size Problem willysr Slackware 5 01-04-2007 06:29 PM
font size problem shamgar03 Linux - General 7 06-28-2005 06:06 PM
xorg font size problem countcobolt Slackware - Installation 2 08-15-2004 10:20 PM
font size problem in evolution irvken Linux - General 3 04-16-2004 12:21 PM
Font size problem brnstrm Linux - Newbie 1 03-17-2004 03:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration