public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Tk_GetFontStruct for Win32
@ 1998-07-14  1:08 Joachim Faulhaber
  1998-07-14 21:52 ` Mumit Khan
  0 siblings, 1 reply; 2+ messages in thread
From: Joachim Faulhaber @ 1998-07-14  1:08 UTC (permalink / raw)
  To: gnu-win32

Hello,

I'm porting a program using Cygnus from Linux to Windoze. My program
uses tcl/tk and the XFontStruct font description to deal with X-fonts
under X. Under win95 my program compiles nicely except for a linker
error:

undefined reference to Tk_GetFontStruct

Obviously there is no function Tk_GetFontStruct and probably no
XFontStruct available for win95. Can someone give me information how I
can find font description structures for win32 and Tk-functions to work
with them. Where can I find documentation. Are there good books for
those questions of Win32-programming?

any help appreciated

Joachim Faulhaber

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Tk_GetFontStruct for Win32
  1998-07-14  1:08 Tk_GetFontStruct for Win32 Joachim Faulhaber
@ 1998-07-14 21:52 ` Mumit Khan
  0 siblings, 0 replies; 2+ messages in thread
From: Mumit Khan @ 1998-07-14 21:52 UTC (permalink / raw)
  To: Joachim Faulhaber; +Cc: gnu-win32

On Tue, 14 Jul 1998, Joachim Faulhaber wrote:

> Hello,
> 
> I'm porting a program using Cygnus from Linux to Windoze. My program
> uses tcl/tk and the XFontStruct font description to deal with X-fonts
> under X. Under win95 my program compiles nicely except for a linker
> error:
> 
> undefined reference to Tk_GetFontStruct

You must still be using tk4.2 on Linux since it's been gone in tk8.0
and beyond! If you use tcl/tk, then you *must* read the changes file to 
see what has changed since the last release, especially the ones marked 
"POTENTIAL INCOMPATIBILITY".

These have been replaced by much more usable and portable Tk_GetFont,
Tk_NameOfFont and Tk_FreeFont. See the manual pages for tcl/tk8.0+ for
fore more info.

> 
> Obviously there is no function Tk_GetFontStruct and probably no
> XFontStruct available for win95. Can someone give me information how I
> can find font description structures for win32 and Tk-functions to work
> with them. Where can I find documentation. Are there good books for
> those questions of Win32-programming?

This particular case obviously has nothing to do with Win32-programming,
but rather the Tk interface.

Mumit

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-07-14 21:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-07-14  1:08 Tk_GetFontStruct for Win32 Joachim Faulhaber
1998-07-14 21:52 ` Mumit Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).