Default fonts with Tcl and Tk


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Default fonts with Tcl and Tk
# 1  
Old 03-03-2009
Default fonts with Tcl and Tk

Our SAs just rebuilt all of our SunOS and Linux boxes. All the TCL tools I had developed will come up but the font is the dingbat font set. Unless I explicitly set each button, label, radiobutton, etc. with "-font = $font" (which I defint at the top to "helvetica 9"), I get the funky characters. Also, I can't figure out how to manually set the fonts for things like tk_chooseDirectory. These are coming up with the dingbat char set.

Is there a way to set the fonts one time at a system level with some sort of environmental? What can I look for that might have changed whatever it is that is causing this? I've written over a hundred scripts and I don't want to have to change the all.

Thanks for any help you can provide...


Scott E.
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question
IMAGEFONTWIDTH(3)							 1							 IMAGEFONTWIDTH(3)

imagefontwidth - Get font width

SYNOPSIS
int imagefontwidth (int $font) DESCRIPTION
Returns the pixel width of a character in font. PARAMETERS
o $ font -Can be 1, 2, 3, 4, 5 for built-in fonts in latin2 encoding (where higher numbers corresponding to larger fonts) or any of your own font identifiers registered with imageloadfont(3). RETURN VALUES
Returns the pixel width of the font. EXAMPLES
Example #1 Using imagefontwidth(3) on built-in fonts <?php echo 'Font width: ' . imagefontwidth(4); ?> The above example will output something similar to: Font width: 8 Example #2 Using imagefontwidth(3) together with imageloadfont(3) <?php // Load a .gdf font $font = imageloadfont('anonymous.gdf'); echo 'Font width: ' . imagefontwidth($font); ?> The above example will output something similar to: Font width: 23 SEE ALSO
imagefontheight(3), imageloadfont(3). PHP Documentation Group IMAGEFONTWIDTH(3)