gtk2.0 font problem



Hi, I searched the archive suspecting this could be a FAQ, but without
luck.

I just installed my first gtk2.0 program and all the dependent
libraries.  It runs fine, but the default widget font is too small
(looks like 9 or 10pt).  gtk1.2 apps work correctly, defaulting to
12pt Helvetica which is what I want.  Here's my .gtkrc file:

# created by KDE, Mon Sep 25 00:44:16 2000
#
# If you do not want KDE to override your GTK settings, select
# Themes/Styles in the control center and disable the checkbox 
# "Apply fonts and colors to non-KDE apps"
#
# If you had a ~/.gtkrc before starting KDE, its content is
# preserved in ~/.gtkrc-save
#

style "default"
{
  fontset = "-adobe-helvetica-medium-r-normal--12-120-75-75-p-67-iso8859-1"

  bg[NORMAL] = { 0.863, 0.863, 0.863 }
  bg[SELECTED] = { 0.000, 0.000, 0.666 }
  bg[INSENSITIVE] = { 0.863, 0.863, 0.863 }
  bg[ACTIVE] = { 0.718, 0.718, 0.718 }
  bg[PRELIGHT] = { 0.863, 0.863, 0.863 }

  base[NORMAL] = { 1.000, 1.000, 1.000 }
  base[SELECTED] = { 0.000, 0.000, 0.666 }
  base[INSENSITIVE] = { 0.863, 0.863, 0.863 }
  base[ACTIVE] = { 1.000, 1.000, 1.000 }
  base[PRELIGHT] = { 1.000, 1.000, 1.000 }

  text[NORMAL] = { 0.000, 0.000, 0.000 }
  text[SELECTED] = { 1.000, 1.000, 1.000 }
  text[INSENSITIVE] = { 0.718, 0.718, 0.718 }
  text[ACTIVE] = { 0.000, 0.000, 0.000 }
  text[PRELIGHT] = { 0.000, 0.000, 0.000 }

  fg[NORMAL] = { 0.000, 0.000, 0.000 }
  fg[SELECTED] = { 1.000, 1.000, 1.000 }
  fg[INSENSITIVE] = { 0.718, 0.718, 0.718 }
  fg[ACTIVE] = { 0.000, 0.000, 0.000 }
  fg[PRELIGHT] = { 0.000, 0.000, 0.000 }
}

class "*" style "default"

(I _do not_ run KDE or gnome, the comment is purely for hysterical
raisins).

I copied this file to .gtkrc-2.0 and tried again, but it had no
effect.  Also, looking at the source of the program, it doesn't seem
to hardcode a font anywhere.

So what is going on?

-- 
Ian Zimmerman, Oakland, California, U.S.A. 
if (sizeof(signed) > sizeof(unsigned) + 4) { delete this; }
GPG: 433BA087  9C0F 194F 203A 63F7 B1B8  6E5A 8CA3 27DB 433B A087



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]