in reply to Re^2: Perl Tk -font option is not working in linux if the language is japanese
in thread Perl Tk -font option is not working in linux if the language is japanese
First, do you actually have the adobe font that you're trying
to use? On my system, it doesn't exist; however, I improvised
and settled on this:
#!/usr/bin/perl BEGIN { $| = 1; $^W = 1; } use strict; use warnings; use Tk; use Tk::X11Font; my $font = "-adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso8859- +1"; my $mw = MainWindow->new; $mw->geometry('100x150'); my $label = $mw->Label( -bg => 'white', -text => "Help!", -font => \$font, )->pack; MainLoop;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Perl Tk -font option is not working in linux if the language is japanese
by LeonelMendoza (Initiate) on Nov 07, 2012 at 05:33 UTC | |
by Khen1950fx (Canon) on Nov 07, 2012 at 07:42 UTC |
In Section
Seekers of Perl Wisdom