Prev: Why teach Ruby in the classroom?
Next: ruby 1.9.1, rubygems, rvm. trouble getting sqlite3 to work.
From: Antonio Galeone on 15 Mar 2010 15:20 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 15 Mar 2010 17:18 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 15 Mar 2010 18:26 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/.
|
Pages: 1 Prev: Why teach Ruby in the classroom? Next: ruby 1.9.1, rubygems, rvm. trouble getting sqlite3 to work. |