meirgold has asked for the wisdom of the Perl Monks concerning the following question:
Hi
I am writing a perl TK program which is supposed to run on HP-UX and Linux machines.
I have noticed the fact, that each machine gives me a different display of the fonts and widgets.
In fact, i can't seem to be able to change the fonts on the widgets when running on Linux.
Is there a way to set the same display type for both machines ?
Perl/Tk uses X fonts and I think you should have the same font families on both machines. You can define a font in your Perl/Tk application like with xlsfonts and xfontsel:
use Tk::Font;
$font = $widget->Font('*-courier-medium-r-normal-*-*');