Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

system font
Hi
I make an application that have default system font option.

use Tk::X11Font;
my $default_font = $mw->X11Font();
$list_box->configure(-font => $default_font);

it do not work

output of print $default_font is

-baekmuk-batangbdf-bold-r-normal--10-100-75-75-m-100-ksc5601.1987-0

Thanks
ngoc


Report this thread to moderator Post Follow-up to this message
Old Post
ngoc
08-18-04 08:56 AM


Re: system font
ngoc <ngoc@yahoo.no> writes:

> Hi
> I make an application that have default system font option.
>
> use Tk::X11Font;
> my $default_font = $mw->X11Font();
> $list_box->configure(-font => $default_font);
>
> it do not work
>
> output of print $default_font is
>
> -baekmuk-batangbdf-bold-r-normal--10-100-75-75-m-100-ksc5601.1987-0
>

Can you specify "can't work"? This works for me (Tk800.024, FreeBSD
4.9):

perl -MTk -MTk::X11Font -e '$mw=tkinit;$font= $mw->X11Font(); $mw->Listbox(-
font => $font)->pack->insert("end", @INC);MainLoop;'

Regards,
Slaven

--
Slaven Rezic - slaven <at> rezic <dot> de
BBBike - route planner for cyclists in Berlin
WWW version:                           http://www.bbbike.de
Perl/Tk version for Unix and Windows:  http://bbbike.sourceforge.net

Report this thread to moderator Post Follow-up to this message
Old Post
Slaven Rezic
08-19-04 01:57 AM


Re: system font
When I choose system font, nothing is displayed. But when I choose two
fonts below, it displays the content as expected.
$fixed_font_large='-adobe-courier-medium-r-normal-*-16-*-*-*-*-*-iso8859-1';
$fixed_font_small='-adobe-courier-medium-r-normal-*-12-*-*-*-*-*-iso8859-1'

The same with your script.
I test on my Linux Redhat WS 3. It does not show the content of @INC
I change @INC to 'test'. It does not show 'test' neither.
Thanks
ngoc
Slaven Rezic wrote:
> ngoc <ngoc@yahoo.no> writes:
>
> 
>
>
> Can you specify "can't work"? This works for me (Tk800.024, FreeBSD
> 4.9):
>
>     perl -MTk -MTk::X11Font -e '$mw=tkinit;$font= $mw->X11Font(); $mw->Lis
tbox(-font => $font)->pack->insert("end", @INC);MainLoop;'
>
> Regards,
>         Slaven
>


Report this thread to moderator Post Follow-up to this message
Old Post
ngoc
08-19-04 08:57 AM


Re: system font
ngoc wrote:

> When I choose system font, nothing is displayed. But when I choose two
> fonts below, it displays the content as expected.
> $fixed_font_large='-adobe-courier-medium-r-normal-*-16-*-*-*-*-*-iso8859-1
';
> $fixed_font_small='-adobe-courier-medium-r-normal-*-12-*-*-*-*-*-iso8859-1
'
>
> The same with your script.
> I test on my Linux Redhat WS 3. It does not show the content of @INC
> I change @INC to 'test'. It does not show 'test' neither.

I get a similar behaviour. With the default font, nothing appears. But,
it seems that the font is transparent since I can select the first few
lines in the Listbox. I tested on Linux RedHat 7.2 and on Solaris 5.8.

--Ala

Report this thread to moderator Post Follow-up to this message
Old Post
Ala Qumsieh
08-19-04 09:04 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PerlTk archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:46 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.