TkFont from file or data

A

Antonio Galeone

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
 
H

Hidetoshi NAGAI

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

Antonio Galeone

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top