TkFont from file or data

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/.

Message-ID: <b04bb6d804b39372fb257dd2f5cfc470@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" <Page not found;

···

From: Antonio Galeone <antonio.galeone@gmail.com>
Subject: TkFont from file or data
Date: Tue, 16 Mar 2010 04:20:49 +0900
--
Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)

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@gmail.com>
Subject: TkFont from file or data
Date: Tue, 16 Mar 2010 04:20:49 +0900
Message-ID: <b04bb6d804b39372fb257dd2f5cfc470@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" <Page not found;

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