DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 2nd July 2008
m4rc m4rc is offline
New User
 
Join Date: Jul 2008
Posts: 7
Thanked 0 Times in 0 Posts
Default FVWM/X11 Resolution Issue?

Hello!

I'm using 4.3 with FVWM on a Thinkpad with 1024x768 res. While xterm and FVWM menus look fine other applications like ooffice, thunderbird, firefox seem to have slightly oversized fonts, menus and pop-up dialog boxes. They look like 800x600 rather then 1024x768. Icons in these apps look ok.

What can I do to adjust the size of these fonts/menus? Thanks for the help!
Reply With Quote
  #2   (View Single Post)  
Old 2nd July 2008
Oko's Avatar
Oko Oko is offline
Fsck Surgeon
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 764
Thanked 36 Times in 32 Posts
Default

Quote:
Originally Posted by m4rc View Post
Hello!

I'm using 4.3 with FVWM on a Thinkpad with 1024x768 res. While xterm and FVWM menus look fine other applications like ooffice, thunderbird, firefox seem to have slightly oversized fonts, menus and pop-up dialog boxes. They look like 800x600 rather then 1024x768. Icons in these apps look ok.

What can I do to adjust the size of these fonts/menus? Thanks for the help!
The resolution is controlled by xorg.conf file in particular

Code:
Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth 24
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes "1400x1050" "1024x768"
        EndSubSection
ThinkPada are definitely capable of better resolution. Mine A20p is on
"1400x1050" so that is why I listed among Modes 1400x1050 as my first choice. When I give talks I need to use LCD projectors which are usually incapable of anything better than 1024x768 that is why I list that among modes as well. You can change the resolution dynamically without restarting X server. Read the man pages for
Code:
xrandr
That would make things appear even smaller on the screen.
The font size on X server is controlled by

Code:
Section "Files"
        RgbPath      "/usr/X11R6/share/X11/rgb"
        ModulePath   "/usr/X11R6/lib/modules"
        FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
        FontPath     "/usr/X11R6/lib/X11/fonts/TTF/"
        FontPath     "/usr/X11R6/lib/X11/fonts/OTF"
        FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
        FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
        FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
Make sure FontPath 100dpi is listed before the size 75dpi.

Now to make fonts bigger in the various applications is the different matter.
To make fonts bigger in Xterm you should edit your .Xdefaults file.
The window manager itself can control some of the font size.
My Window manager of choice is OpenBox. If you have ObConf installed it will allow you to change the font size using GUI. You can always play with conf files but in the case of the OpenBox the only one that should be edited by hand are menu.xml and if you want to customize key bindings rc.xml.
They should be edited per user in the directory .config/openbox.
I do not use FVWM so I am not familiar with its configuration files. That is probably best documented Window Manager so you have to read the documentation.

Finally in the applications like Firefox you can adjust the preferences.
It will allow you to change the font size too.
Reply With Quote
  #3   (View Single Post)  
Old 2nd July 2008
m4rc m4rc is offline
New User
 
Join Date: Jul 2008
Posts: 7
Thanked 0 Times in 0 Posts
Default

My "Screen" and "Files" sections of <b>xorg.conf</b> look pretty much the same. Also <b>xrandr</b> is indicating the right resolution (1024x768). Adjusting the font size in the prefs of Firefox only affected the content and not the layout of the application. I doubt that I find the solution in the prefs of the apps, since the issue is not app specific.

While I was writting this reply I did a quick look in the FVWM config and I think I've found the sucker: WindowFont -adobe-times-bold-r-*-*-14-...

Man, man fvwm is a good place for my further research :-)

Thanks Oko!
Reply With Quote
  #4   (View Single Post)  
Old 2nd July 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

Quote:
Originally Posted by m4rc View Post
My "Screen" and "Files" sections of <b>xorg.conf</b> look pretty much the same. Also <b>xrandr</b> is indicating the right resolution (1024x768). Adjusting the font size in the prefs of Firefox only affected the content and not the layout of the application. I doubt that I find the solution in the prefs of the apps, since the issue is not app specific.

While I was writting this reply I did a quick look in the FVWM config and I think I've found the sucker: WindowFont -adobe-times-bold-r-*-*-14-...

Man, man fvwm is a good place for my further research :-)

Thanks Oko!
HTML isn't supported. Use bbcode next time.
Reply With Quote
  #5   (View Single Post)  
Old 2nd July 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

FVWM, the one window manager where R'ing TFM may be the answer to all funkiness lol
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #6   (View Single Post)  
Old 3rd July 2008
lvlamb's Avatar
lvlamb lvlamb is offline
Real Name: Louis V. Lambrecht
Spam Deminer
 
Join Date: May 2008
Location: .be
Posts: 221
Thanked 25 Times in 24 Posts
Default

Quote:
Originally Posted by BSDfan666 View Post
HTML isn't supported. Use bbcode next time.
What is wrong with http://www.daemonforums.org/misc.php?do=bbcode ?
__________________
da more I know I know I know nuttin'
Reply With Quote
  #7   (View Single Post)  
Old 3rd July 2008
m4rc m4rc is offline
New User
 
Join Date: Jul 2008
Posts: 7
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by m4rc View Post
... and I think I've found the sucker: WindowFont -adobe-times-bold-r-*-*-14-...
I was wrong...

Quote:
Originally Posted by man fvwm
WindowFont [ fontname ]
Makes fvwm use font fontname instead of "fixed" for
window title-bars. To reset this font to the
default font (see DefaultFont) you may omit font-
name.
My new guess is that it has something to do with GTK+. Help is appreciated, otherwise stay tuned ;-)
Reply With Quote
  #8   (View Single Post)  
Old 3rd July 2008
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,876
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by m4rc View Post
I'm using 4.3 with FVWM on a Thinkpad with 1024x768 res. While xterm and FVWM menus look fine other applications like ooffice, thunderbird, firefox seem to have slightly oversized fonts, menus and pop-up dialog boxes.
While I suspect you are using 4.3-release, note that you can expect more font changes in 4.4:

http://marc.info/?t=121369470200001&r=1&w=2&n=8
Reply With Quote
  #9   (View Single Post)  
Old 3rd July 2008
m4rc m4rc is offline
New User
 
Join Date: Jul 2008
Posts: 7
Thanked 0 Times in 0 Posts
Default

Here we go:

Create ~/.gtkrc-2.0 containing a string like gtk-font-name = “Sans 8"

Thanks to Dimitri Alenitchev (http://alenitchev.wordpress.com/2006/10/03/)
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fvwm - Desktop screenshot - impressive! aleunix Other BSD and UNIX/UNIX-like 16 5th September 2010 10:15 PM
Resolution problem.. PCBSD3000 FreeBSD General 5 13th April 2009 07:56 PM
fatal error fvwm Nk2Network OpenBSD General 7 10th January 2009 02:49 PM
resolution too high!!! =| ? what? seadog109 Other BSD and UNIX/UNIX-like 19 18th October 2008 04:25 AM
Which file manager for fvwm? aleunix General software and network 5 8th June 2008 08:01 AM


All times are GMT. The time now is 12:17 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick