Re: [Gtk-osx-users] Gtk-ERROR **: Unable to load "fixed" font



On Apr 30, 2011, at 1:31 PM, Pascal wrote:

> Hi John, thanks for your tips.
> I've tried some GTK-Ada examples picked up on the web.
> With one of them, I've got the following error (with extract of crash report):
> $ ./mine_detector 
> Gtk-ERROR **: Unable to load "fixed" font
> aborting...
> Trace/BPT trap
> 30/04/11 10:01:20	ReportCrash[9337]	Saved crash report for mine_detector[9335] version ??? (???)
> 0   libglib-2.0.0.dylib           	0x0000000100bbcadd g_logv + 1311
> 1   libglib-2.0.0.dylib           	0x0000000100bbcc9a g_log + 235
> 2   libgtk-quartz-2.0.0.dylib     	0x000000010034583e gtk_style_get_font_internal + 551
> 
> This function calls gdk_font_load_for_display which is empty:
> ~/gtk/source/gtk+-2.24.0/gdk/quartz/gdkfont-quartz.c
> ...
> GdkFont*
> gdk_font_load_for_display (GdkDisplay  *display,
> 			   const gchar *font_name)
> {
>  /* FIXME: Implement */
>  return NULL;
> }
> 
> Is there some working version available yet?

That's really a subject for gtk-app-dev (unless you want to contribute a patch, in which case you could write a bug), but:

Well... no, not exactly. Gdkfont has been removed from Gtk+-3 and fonts and layout and such are handled directly by pango; there aren't even any wrappers. It probably works OK there, though I can't say I've tested it. Since 2.24 is a bug-fix end-of-life release series, it's not likely ever to be fixed there. That means that you'll have to wait until Gtk-Ada is ported to Gtk+-3 to have font features fully supported. The good news is that unlike some of the other bindings GtkAda appears to be active.

Regards,
John Ralls



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