LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Thread Tools
Old 05-10-2008, 03:38 PM   #1
reikyv
Member
 
Registered: Oct 2007
Location: Malaysia
Distribution: Slackware
Posts: 80
Thanked: 0
Font Size Problem


[Log in to get rid of this advertisement]
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.
reikyv is offline     Reply With Quote
Old 05-10-2008, 03:45 PM   #2
BCarey
Senior Member
 
Registered: Oct 2005
Distribution: Slackware
Posts: 1,153
Thanked: 14
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
BCarey is offline     Reply With Quote
Old 05-11-2008, 01:46 AM   #3
dugan
Member
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 537
Thanked: 27
Another way:
http://mythtv.org/wiki/index.php/Display_Size
dugan is offline     Reply With Quote
Old 05-11-2008, 03:36 AM   #4
Daedra
Member
 
Registered: Dec 2005
Location: Long Beach, CA
Distribution: Slackware32/64 13.0
Posts: 494
Thanked: 25
Can you post a screenshot?
Daedra is offline     Reply With Quote
Old 05-11-2008, 03:48 AM   #5
reikyv
Member
 
Registered: Oct 2007
Location: Malaysia
Distribution: Slackware
Posts: 80
Thanked: 0

Original Poster
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
reikyv is offline     Reply With Quote
Old 05-11-2008, 03:59 AM   #6
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 507
Thanked: 22
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?)
Su-Shee is offline     Reply With Quote
Old 05-11-2008, 04:24 AM   #7
reikyv
Member
 
Registered: Oct 2007
Location: Malaysia
Distribution: Slackware
Posts: 80
Thanked: 0

Original Poster
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, ;-)
reikyv is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 07:29 PM
font size problem shamgar03 Linux - General 7 06-28-2005 07:06 PM
xorg font size problem countcobolt Slackware - Installation 2 08-15-2004 11:20 PM
font size problem in evolution irvken Linux - General 3 04-16-2004 01:21 PM
Font size problem brnstrm Linux - Newbie 1 03-17-2004 04:52 AM


All times are GMT -5. The time now is 08:42 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration