Freetype Segfault (0.90 RC1)



In 0.90 RC1, under RH7.3, a segfault can occur if a font face does not have
a family_name e.g. wadalab-gothic.ttf
To stop this happening, a simple check is required.

in lib/font.c at line 583 (in freetype_add_font, after the if (error) { } )
please insert

if (face->family_name == NULL)
        return;

Or, should we handle this differently?

Regards,
Rob.

P.S. Sorry this isn't a diff - I have made tooo many changes to lib/font.c
before this one.



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