I kept having a NULL SAP from sdl-ttf-cffi::ttf-Render-UTF8-Solid, so i instrumented the glue like this:
extern DECLSPEC SDL_Surface * SDLCALL TTF_glue_RenderUTF8_Solid(TTF_Font *font, const char *text, SDL_Color *fg) { SDL_Surface *ret = TTF_RenderUTF8_Solid(font, text, *fg); if (!ret) { printf("font: %p, text: %s, color: %p, %08x\n", font, text, fg, *fg); printf("Oh My Goodness, an error : <%s>\n", TTF_GetError()); } return ret; } And as strange as it might seem, i was getting the following: font: 0x808f6d8, text: ХеймдаллÑгаÑд, Хлодвиг, color: 0xb7bedef8, 00ffffff Oh My Goodness, an error : <> I.e. the C function signals an error (as per [1]), yet the error description was not set. I think this is fishy. regards, Samium Gromoff [1]: http://jcatki.no-ip.org/SDL_ttf/SDL_ttf.html#SEC37 _______________________________________________ application-builder mailing list application-builder@lispniks.com http://www.lispniks.com/mailman/listinfo/application-builder