This is the mail archive of the xconq7@sources.redhat.com mailing list for the Xconq project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problem with textfont, boldfont


If I update xconq from CVS and try

    $ ~/work/xconq/x11/xconq -f ~/.xconq/tksave.xcq

I get the following errors:

    Error: can't read "textfont": no such variable
    Error: while evaluating `create_map_window 1'
    Error: can't read "map_widget(1)": no such variable
    Error: while evaluating `update_mode 1 move'

The enclosed patch makes things work for me again, although it is
(sort of) a reversion of Hans's recent change so I don't know whether
there is a better way.

Index: tcltk/tkconq.tcl
===================================================================
RCS file: /cvs/xconq/xconq/tcltk/tkconq.tcl,v
retrieving revision 1.112
diff -u -r1.112 tkconq.tcl
--- tcltk/tkconq.tcl	7 Aug 2002 13:22:54 -0000	1.112
+++ tcltk/tkconq.tcl	7 Aug 2002 18:44:02 -0000
@@ -202,6 +202,12 @@
 set prefs(joinport) 3075
 set prefs(myname) "John Doe"
 
+# Seem to need this before popup_splash_screen time:
+# set bigfont {-size 12 -weight bold -family helvetica }
+set textfont [ list "-family" $prefs(font_family) "-size" $prefs(font_size) ]
+set boldfont [ list "-family" $prefs(font_family) "-size" $prefs(font_size) "-weight" "bold" ]
+
+
 # The preceding code is all executed during initial_ui_init(), and
 # thus goes before any customization done by the game design or user
 # preferences.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]