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 ?

Thanks

Replies are listed 'Best First'.
Re: Font difference
by nite_man (Deacon) on Apr 30, 2003 at 07:25 UTC
    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-*-*');
    Hope that I helped.
          
    --------------------------------
    SV* sv_bless(SV* sv, HV* stash);