Comment 5 for bug 837080

Revision history for this message
John Nogatch (jnogatch) wrote :

2 messages are printed before the seg fault:
$ xsmc
Unable to load font
Unable to load font
Segmentation fault (core dumped)

The xsmc application expects to find 2 fonts which match the patterns:
"*-helvetica-medium-r-normal--12*"
"*helvetica*6*"

The helvetica fonts are not present by default in Ubuntu 12.10.

The attached patch tries additional font patterns, if helvetica is not found:
$ ./xsmc
Unable to load font: *-helvetica-medium-r-normal--12*
Using font: *-fixed-medium-*--12*
Unable to load font: *-helvetica-*--6*
Using font: *-fixed-medium-*--6*

The messages show the font name patterns, the application will return 1 if no fonts are found, Makefile has been modifed to use CFLAGS.