Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^5: Perl Tk -font option is not working in linux if the language is japanese

by Khen1950fx (Canon)
on Nov 07, 2012 at 07:42 UTC ( #1002643=note: print w/ replies, xml ) Need Help??


in reply to Re^4: 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

Use Tk::XFontSelect:

#!/usr/bin/perl BEGIN { $| = 1; $^W = 1; } use strict; use warnings; use Tk; use Tk::X11Font; use Tk::XFontSelect; my $font = "-adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso8859- +1"; my $mw = MainWindow->new; $mw->geometry('100x150'); my $fontdialog = $mw->XFontSelect; $fontdialog->Show; my $label = $mw->Label( -bg => 'white', -text => "Help!", -font => \$font, )->pack; MainLoop;


Comment on Re^5: Perl Tk -font option is not working in linux if the language is japanese
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1002643]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2014-08-29 09:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (277 votes), past polls