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

From: Antonio G. [email protected]
Subject: TkFont from file or data
Date: Tue, 16 Mar 2010 04:20:49 +0900
Message-ID: [email protected]

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

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 G. [email protected]
Subject: TkFont from file or data
Date: Tue, 16 Mar 2010 04:20:49 +0900
Message-ID: [email protected]

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs