| Store | Cart

Re: [TCLCORE] private font-files in tcltk

From: Pat Thoyts <patt...@users.sourceforge.net>
Thu, 26 Mar 2009 00:14:02 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Brian Griffin wrote:
> On Tue, Mar 24, 2009 at 4:28 PM, T. Horsnell <t...@mrc-lmb.cam.ac.uk> <mailto:t...@mrc-lmb.cam.ac.uk>> wrote:> >     Jeff Hobbs wrote:>     > On 24/03/2009 9:46 AM, T. Horsnell wrote:>     >> Is there a way in TCLTK to use fontfiles from a private directory?>     >> Preferably a way in which one can refer to such files by an explicit>     >> file-path.>     >>     > Tk is directed by the fonts the X server (or OS system) says are>     > available.  Just make that font available through the X server and Tk>     > will see it.>     >>     > Jeff> >     Yes, but I want to do this under Windows as well as Linux and I dont>     want the user to have to install this private fontset in either case.>     I want to be able to distribute them along with the application.> > Sounds like a good GSoC project :-)>

This can probably be achieved using AddFontResourceEx or
AddFontMemResourceEx which is what is used to load fonts embedded in PDF
documents and other such things. I should think it will be fairly simple
to do.

Pat Thoyts
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBScq6umB90JXwhOSJAQKZiQP9GX2RWfT+xlTYgGtqouzmMnf3GmbLxQCX
X/AQXXiwmzzFJvHgNUbAGZKFtwq7dix7W5IDrwyCWABaQRy10RQepRaEvbDheXVn
s515npjLE3lfJS0+E9of5Cb5MUdJQibQST0GQdez8LdGqaRu2RKR7zak4zgph5yL
YZ76t9a/AW8=
=7O6g
-----END PGP SIGNATURE-----


------------------------------------------------------------------------------
_______________________________________________
Tcl-Core mailing list
Tcl-...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tcl-core

Recent Messages in this Thread
T. Horsnell Mar 24, 2009 04:46 pm
Jeff Hobbs Mar 24, 2009 06:27 pm
T. Horsnell Mar 24, 2009 11:28 pm
Brian Griffin Mar 25, 2009 12:40 am
Pat Thoyts Mar 25, 2009 11:14 pm
Pat Thoyts Mar 26, 2009 12:39 am
T. Horsnell Mar 26, 2009 10:52 am
Messages in this thread