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.
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: medium- r-normal- -12*"
"*-helvetica-
"*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: medium- r-normal- -12* medium- *--12* medium- *--6*
$ ./xsmc
Unable to load font: *-helvetica-
Using font: *-fixed-
Unable to load font: *-helvetica-*--6*
Using font: *-fixed-
The messages show the font name patterns, the application will return 1 if no fonts are found, Makefile has been modifed to use CFLAGS.