delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/07/15/05:42:51

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Subject: Re: Tk_GetFontStruct for Win32
15 Jul 1998 05:42:51 -0700 :
Message-ID: <Pine.SUN.3.93.980714232441.24052B-100000.cygnus.gnu-win32@modi.xraylith.wisc.edu>
References: <35AB1346 DOT 2519509E AT cs DOT tu-berlin DOT de>
Mime-Version: 1.0
To: Joachim Faulhaber <jofa AT cs DOT tu-berlin DOT de>
Cc: gnu-win32 AT cygnus DOT com

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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019