From c9098b1706ee463447e128156b9baaf23fa4f0a9 Mon Sep 17 00:00:00 2001 From: patthoyts Date: Fri, 30 Jan 2009 21:02:13 +0000 Subject: catch font create when the console is re-sourced via F9 --- library/console.tcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/console.tcl b/library/console.tcl index 2fddfe3..7f39ec3 100644 --- a/library/console.tcl +++ b/library/console.tcl @@ -4,7 +4,7 @@ # can be used by non-unix systems that do not have built-in support # for shells. # -# RCS: @(#) $Id: console.tcl,v 1.39 2008/12/10 05:02:51 das Exp $ +# RCS: @(#) $Id: console.tcl,v 1.40 2009/01/30 21:02:13 patthoyts Exp $ # # Copyright (c) 1995-1997 Sun Microsystems, Inc. # Copyright (c) 1998-2000 Ajuba Solutions. @@ -123,7 +123,7 @@ proc ::tk::ConsoleInit {} { . configure -menu .menubar # See if we can find a better font than the TkFixedFont - font create TkConsoleFont {*}[font configure TkFixedFont] + catch {font create TkConsoleFont {*}[font configure TkFixedFont]} set families [font families] switch -exact -- [tk windowingsystem] { aqua { set preferred {Monaco 10} } -- cgit v0.12