Finally. After too many hours on such a ‘simple’ thing, I’ve managed to get swt up and running on a (rather) small device (with a PPC) with gtk as backend. What did I do wrong? For some reason I didn’t get the Freetype support into pango.
So when compiling the following code:
/* Make sure that the type system is initialized */
return g_object_new (PANGO_TYPE_CAIRO_ATSUI_FONT_MAP, NULL);
return g_object_new (PANGO_TYPE_CAIRO_WIN32_FONT_MAP, NULL);
return g_object_new (PANGO_TYPE_CAIRO_FC_FONT_MAP, NULL);
the pre processor passed on to the #endif statement and, yup, crap will be returned when executing. When the function returned 0xd (13 in decimal) I was quite sure something was wrong.
OK, I was just about to write a bug report to pango when quickly checking the latest version of the function. It’s now fixed. The function returns 0 after the last #endif .Perfect.
But this leads to the non-answerable question:
Should one go for CVS head or the latest stable release???