pixel dimensions of string

2009-08-25 Thread Ken Resander
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

Re: Odd Linux behavior

2009-08-25 Thread Michael Torrie
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

gtk-list@gnome.org

2009-08-25 Thread Ken Resander
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