*

Welcome, Guest. Please login or register.

Get your own OLPC - Buy an XO laptop on eBay!
Pages: [1]
Print
Author Topic: Simple way to fix too-large fonts  (Read 3919 times)

Simple way to fix too-large fonts

eeksock
Contributor
*
Posts: 31


February 04, 2008, 06:03:37 PM

When I switched to Fluxbox, I noticed that the default font used by Firefox and other programs menus was far too large.  The font settings come from GTK, but I didn't want to install the GTK control panel to change the font.

I found that simply adding a file named .gtkrc-2.0 in /home/olpc with the following contents fixes this:

Code:
style "user-font"
{
    font_name="DejaVu Sans 6"
}
gtk-font-name="DejaVu Sans 6"

Of course, you can replace the "6" with other numbers and see how they look to you!


eeksock
Logged

#1 Re: Simple way to fix too-large fonts

goney3
Master Contributor
***
Posts: 363


G1G1D48


March 26, 2008, 08:56:53 AM

eeksock, would this include fonts that are too small (ie. xterm showing up micro-sized).

Will this "hack" also override my currently enabled themes setting?
(im using bora_green to match the rest of the XO) Smiley
Logged

#2 Re: Simple way to fix too-large fonts

Jordan
Senior Contributor
**
Posts: 149


March 26, 2008, 09:11:58 AM

Code:
For xterm, try launching it as:

[code]
xterm -fa "DejaVu Sans 6"

Change the 6 to suit your desired font size.  I also seem to recall tweaking DisplaySize in the xorg.conf file to:

Code:
DisplaySize 236 177

Though I cannot for the life of me remember how those values were calculated.[/code]
Logged
Pages: [1]
Print
Jump to:  

Members
Total Members: 2405
Latest: sembik
Stats
Total Posts: 31943
Total Topics: 3843
Online Today: 23
Online Ever: 238
(April 18, 2011, 09:48:50 PM)
Users Online
Users: 0
Guests: 16
Total: 16