Cairo Snow Leopard FT_New_Face( ) crash
BlitzMax Forums/Brucey's Modules/Cairo Snow Leopard FT_New_Face( ) crash
| ||
I have Cairo crashing and traced it to line 316 in cairo.mod/externs.bmx If FT_New_Face( ft_lib,src$,0,Varptr ft_face ) Return Null From my code I call: cairo.SelectFontFace( "Helvetica", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD) If I change to "arial" it works without crashing. I tested the text examples and they crash too if I change the font to "Helvetica" and "helvetica". On my Mac, it seems helvetica is a .dfont and Arial is a tff (if that is relevant. ) |
| ||
On my Mac, it seems helvetica is a .dfont and Arial is a tff (if that is relevant. ) Oh... my guess is that the version of FreeType that BlitzMax is using is broken :-p It's very old.... and buggy. I remember seeing something similar before, and wrapped a newer version of FreeType, which made the issue go away... Can't remember if I posted it here or not - I'm always doing stuff, so who knows :-) |
| ||
Thanks, Brucey, http://www.brucey.net/programming/blitz/modules/fontconfig/freetype_updated.zip that fixed it! :) |
| ||
Ah, there it is :-) There's probably an even newer version we could use now... |
| ||
Hopefully this will get an official update in the not too distant future :-) |