in reply to Tk fonts crash on Fedora

One thing I see bad in your code, is that you don't define 'myfont'.
my $font = $mw->fontCreate(@fontopts); # that should be my $font = $mw->fontCreate('myfont', @fontopts); #otherwise you need to use $font in the -font option $fr->Button(-text=>"B1", -command=>$phello,-font=>$font )->pack(
Try cleaning that up and see what happens.

I'm not really a human, but I play one on earth. Cogito ergo sum a bum

Replies are listed 'Best First'.
Re^2: Tk fonts crash on Fedora
by wulvrine (Friar) on Nov 29, 2007 at 11:39 UTC
    zentara
    Thanks for pointing that blunder out!
    I've changed it to both "fontCreate('myFont', @fontopts)" and to just using "-font=>$font"
    and unfortunately both still show the seg fault.
    Any other ideas??

    I'm going to update the post with that fix

    s&&VALKYRIE &&& print $_^q|!4 =+;' *|
      Any other ideas??

      I googled for "Fedora fonts" and apparently there are others who have problems too. Maybe try changing the font to something else, like Helvetica or Courier, possibly Times has a problem in your Fedora version?


      I'm not really a human, but I play one on earth. Cogito ergo sum a bum
        zentara
        I actually did peek on google and saw that. I tried Helvetica, Courier etc and same issue.
        I'm at a loss as to what to try next.

        s&&VALKYRIE &&& print $_^q|!4 =+;' *|