http://www.perlmonks.org?node_id=1002434


in reply to Perl Tk -font option is not working in linux if the language is japanese

Does the font setting work for any other font with Japanese?
Are you sure the font in questions can display Japanese?
Can you show a short sample code that demostrates the problem?
This works for me:
perl -MEncode -MTk -e 'my $j = decode("utf-8", "\xe6\x97\xa5\xe6\x9c\x +ac\xe5\x9b\xbd"); my $w = new MainWindow::; $w->Label(-text => $j, -font => "-adobe-helvetica-regular-r-normal-*-12-*-*-*-* +-*-*-*" )->pack; MainLoop()'
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
  • Comment on Re: Perl Tk -font option is not working in linux if the language is japanese
  • Download Code