Xorg - how to change font size

X.Org on FreeBSD installation & configuration.

Xorg - how to change font size

Postby hennesse » 19 Aug 2011, 00:39

Hi,

I installed Xorg on my 8.1 system. "startx" gives me a login and 2 xterm windows. The text is so small that I need to use reading glasses. How can I make it bigger?

It's a special-purpose machine, so I only need to do two things - run Firefox and vi. Firefox works fine. So I don't need any window managers or other complex stuff (I'm a command-line guy). I just wanna be able to read the screen.

Thanks,
Dave


The "special purpose" is controlling a home beer brewery (FreeBSD can do anything!)
http://www.davehennessey.com/brewery/photos/
hennesse
Junior Member
 
Posts: 13
Joined: 18 Aug 2011, 18:45
Location: Broad Run, Virginia

Postby wblock@ » 19 Aug 2011, 00:55

Edit [file].xinitrc[/file] to start the xterms with a different font size. See [pman=1]xterm[/pman].
User avatar
wblock@
Old Fart
 
Posts: 10169
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Solved!

Postby hennesse » 19 Aug 2011, 02:17

Well, not solved yet, but you got me going in the right direction.

Already learned how to start up with the xterms in nice locations on the screen, autostart firefox, and twm as a "minimalist" window manager. I'll do my homework and figure out the darn font thing.

Thanks!
Dave
hennesse
Junior Member
 
Posts: 13
Joined: 18 Aug 2011, 18:45
Location: Broad Run, Virginia

Postby wblock@ » 19 Aug 2011, 02:20

Try [file]-fn 10x20[/file] as an option.
User avatar
wblock@
Old Fart
 
Posts: 10169
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Postby femc7488 » 19 Aug 2011, 04:28

Add [FILE].Xdefaults[/FILE] to user's home directory and append the code below

Code: Select all
XTerm*utf8Title: true
XTerm*multiClickTime: 500
XTerm*faceName: Bitstream Vera Sans Mono
XTerm*faceSize: 10 # font size
XTerm*title: X-Terminal
XTerm*internalBorder: 10
XTerm*geometry: 80x20 # xterm geometry size
XTerm*saveLines: 1000
XTerm*visualBell: true
XTerm*colorULMode: true
XTerm*colorUL: #cc0000
XTerm*pointerMode: 0
femc7488
Junior Member
 
Posts: 16
Joined: 16 Apr 2009, 19:16

SOLVED - Many thanks

Postby hennesse » 19 Aug 2011, 15:22

A combination of [FILE].xinitrc[/FILE] and [FILE].Xdefaults[/FILE] did exactly what I wanted it to.

[FILE].xinitrc[/FILE] opens the windows the way I want them to look initially.

[FILE].Xdefaults[/FILE] not only allows finer control of the window appearance, but it makes any new xterms opened by twm look good too - in case I close the initial one, or need another.

This combo opens Firefox, a "programmer's window", and the twm window manager.

[FILE].xinitrc[/FILE]
Code: Select all
xsetroot -solid gray &
xterm -geometry 80x24+10+10 -fn 10x20 -n "Use of this window may void your warranty" &
exec firefox3 &
exec twm

[FILE].Xdefaults[/FILE]
Code: Select all
XTerm*utf8Title: true
XTerm*multiClickTime: 500
XTerm*faceName: Bitstream Vera Sans Mono
XTerm*faceSize: 14 # font size
XTerm*internalBorder: 10
XTerm*saveLines: 1000
XTerm*visualBell: false
XTerm*colorULMode: true
XTerm*colorUL: #cc0000
XTerm*pointerMode: 0

# XTerm*title: X-Terminal  # it overrides .xinitrc's settings
# XTerm*geometry: 80x20    # caused error messages (conflict with .xinitrc?)
# XTerm*visualBell: true   # changed to false - see below

I'm an old dog - back in the late 1980s/early 1990s, I developed the bad habit of hitting the ESC key multiple times when changing modes in vi - to get that re-assuring bell. If I was particular satisfied with the line I just typed, I'd hit ESC twice. If I was angry, or didn't know what to do next, I might hit ESC three or four times. Multiple "visual bells" just aren't the same. You can teach an old dog new tricks, but it's hard to erase bad habits.

Thanks again,
Dave
hennesse
Junior Member
 
Posts: 13
Joined: 18 Aug 2011, 18:45
Location: Broad Run, Virginia

Postby michaelrmgreen » 20 Aug 2011, 20:26

User avatar
michaelrmgreen
Member
 
Posts: 204
Joined: 16 Nov 2008, 21:49
Location: The Peoples Republic of Couch


Return to X.Org

Who is online

Users browsing this forum: No registered users and 0 guests