Help for this page

Select Code to Download


  1. or download this
    use Tk;
    use Tk::Font;
    ...
    
    foreach (1 .. 10) { $l->Font }
    print "Fonts: " . join(",", $l->fontNames) . "\n";
    
  2. or download this
    use Tk;
    use Tk::Font;
    ...
    )->pack;
    
    MainLoop;
    
  3. or download this
    use Tk;
    use Tk::Font;
    ...
       print "Atrr:  " . join(",", $font->actual) . "\n";
       print "Fonts: " . join(",", $w->fontNames) . "\n\n";
    }
    
  4. or download this
       
       print "Size: " . $font->configure('-size') . "\n";
    
  5. or download this
    use Tk;
    use Tk::Font;
    ...
       $widget->update;
       $widget->bind('<Configure>', \&ResizeText);
    }