Many thanks!
It is now working.
Here are the steps combined into a single routine...
extern GttWidget * curdlg; // of current dialog
void gettextwdht ( char * family , int ptsize , int weight , bool normalstyle ,
char * stringtomeasure ,
int * wdret , int
Lindley M French wrote:
> When a window is scrolled into view as far as the hbox is concerned,
> gdk_window_process_events() works as expected even if the entire GUI
> is minimized. But when a window is *not* scrolled into view, it
> doesn'tthe expose handler is never called.
The expose event
I am translating a bunch of Windows programs that critically need to work out
pixel dimensions of a string (with no newlines in it).
On Windows I first call getfont:
void getfont ( char * fontfacename , int sizeinpts , int weight , HFONT * hfret
)
{
LOGFONT lf = usewindowsapifunctions ( f