Subject: | Font, size and fontActual |
Dear,
I have a problem with font size. I have test this program
#!/usr/bin/perl
use strict;
use warnings;
use Tk;
my $mw = MainWindow->new( -background => 'white',);
$mw->fontCreate('bigfont', -size => 48);
my %big = $mw->fontActual('bigfont');
print %big,"\n\n";
my $size = $mw->fontActual('bigfont', -size);
print $size;
The result is
-weightnormal-underline0-familyArial-slantroman-size-64-overstrike0
-64
The size return is not -48. Where is the problem ?
I am using ActivePerl 5.10 1007 on a XP or Vista computer.
Best Regards,
Djibril