From: Antonio Galeone on
Is there a way to load a TkFont from a file or from resources ?
In a way similar to TkPhotoImage write TkFont.new('data' => font_data)


Thanks
Antonio
--
Posted via http://www.ruby-forum.com/.

From: Hidetoshi NAGAI on
From: Antonio Galeone <antonio.galeone(a)gmail.com>
Subject: TkFont from file or data
Date: Tue, 16 Mar 2010 04:20:49 +0900
Message-ID: <b04bb6d804b39372fb257dd2f5cfc470(a)ruby-forum.com>
> Is there a way to load a TkFont from a file or from resources ?
> In a way similar to TkPhotoImage write TkFont.new('data' => font_data)

The following page may help you.
"How to use new fonts without installing'em" <http://wiki.tcl.tk/22262>
--
Hidetoshi NAGAI (nagai(a)ai.kyutech.ac.jp)

From: Antonio Galeone on
Thank you so much, there are useful ideas:
a first solution could be :
in "windows" try to call AddFontResourceEx of GDI dll
and in "linux" copy font file in ~/fonts dir.
I'll try to do so.

Regards
Antonio

Hidetoshi NAGAI wrote:
> From: Antonio Galeone <antonio.galeone(a)gmail.com>
> Subject: TkFont from file or data
> Date: Tue, 16 Mar 2010 04:20:49 +0900
> Message-ID: <b04bb6d804b39372fb257dd2f5cfc470(a)ruby-forum.com>
>> Is there a way to load a TkFont from a file or from resources ?
>> In a way similar to TkPhotoImage write TkFont.new('data' => font_data)
>
> The following page may help you.
> "How to use new fonts without installing'em" <http://wiki.tcl.tk/22262>

--
Posted via http://www.ruby-forum.com/.