FC3 Xorg/Gtk update breaks GTK application.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I applied the FC3 updates on 12/3, this include xorg and gtk updates.

Now my gtk application dumps core displaying on the FC3 Xserver.
I traced the problem to:

      if( (W.big_font = gdk_font_load ( big_font_name )) == NULL )
      {
         printf("Error unable to font: %s\n", big_font_name);
         exit(0);
      }
      W.big_font_wid = gdk_char_width( W.big_font, 'W' );
      W.big_font_hgt =  W.big_font->ascent+W.big_font->descent;

      printf("big_font: name=%s %dx%d\n", big_font_name, W.big_font_wid, W.big_font_hgt );
      printf("%d \n", gdk_char_width( W.big_font, 'W' ));

Here is the output:

  big_font: name=-*-lucidatypewriter-*-*-*-*-18-*-*-*-*-*-*-* 0x19
  0
  Floating exception (core dumped)

Something is broken with FC3 with get_char_wid() -> return 0 for
wid for this font.
Note, this works if I used a difference font (ie Fonts are -*-fixed-*-*-*-*-20-*-*-*-*-*-*-*)

Also the application runs OK if I export my DISPLAY to my office computer
(XP running X-Win32 server with Solaris Openlook window manager). Only
noticed the problem when running on the FC3 console.

Tony

/-----------------------------------------------------------------------\
| Tony Denault                     | Email: denault@xxxxxxxxxxxxxxxxxxx |
| Institute for Astronomy          |              Phone: (808) 932-2378 |
| 640 North Aohoku Place           |                Fax: (808) 933-0737 |
| Hilo, Hawaii 96720               |                                    |
\-----------------------------------------------------------------------/


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux