TkFont from file or data

Discussion in 'Ruby' started by Antonio Galeone, Mar 15, 2010.

  1. 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/.
     
    Antonio Galeone, Mar 15, 2010
    #1
    1. Advertising

  2. From: Antonio Galeone <>
    Subject: TkFont from file or data
    Date: Tue, 16 Mar 2010 04:20:49 +0900
    Message-ID: <>
    > 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 ()
     
    Hidetoshi NAGAI, Mar 15, 2010
    #2
    1. Advertising

  3. 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 <>
    > Subject: TkFont from file or data
    > Date: Tue, 16 Mar 2010 04:20:49 +0900
    > Message-ID: <>
    >> 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/.
     
    Antonio Galeone, Mar 15, 2010
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jane Austine
    Replies:
    14
    Views:
    822
    Dennis Lee Bieber
    Oct 9, 2004
  2. Atul
    Replies:
    1
    Views:
    391
    Eric Brunel
    May 9, 2006
  3. roughtrader
    Replies:
    3
    Views:
    454
    James Kanze
    Feb 17, 2009
  4. Lionel MAIAUX
    Replies:
    2
    Views:
    120
    Hidetoshi NAGAI
    Aug 31, 2006
  5. Replies:
    5
    Views:
    111
    Chris Angelico
    May 14, 2014
Loading...

Share This Page