[cairo] Cairo OSX and show_text: seg fault with Cairo 1.4.10

Davide Rambaldi davide.rambaldi at ifom-ieo-campus.it
Thu Dec 20 06:03:00 PST 2007


Hi I am really a newbye of Cairo and moreover I use the Perl binding  
to call Cairo.

I am running Cairo on my OSX G4 laptop with Cairo installed with  
MacPorts.

Running Cairo 1.4.10 (old version) I get a Segmentation Fault on  
calling the function cr_show_text on a PDF Surface ($cr -> show_text 
('HELLO') in the perl binding). To solve this problem (if anyone have  
it), I just upgrade MacPorts to 1.6 and I call: "sudo port upgrade  
cairo" to switch to the newer release 1.4.12.

Example Script:

my $pdfsurf = Cairo::PdfSurface->create($output, 256,256);
my $pdfcr   = Cairo::Context->create ($pdfsurf);
$pdfcr -> select_font_face('monospace','normal','normal');
$pdfcr -> set_font_size (40);
$pdfcr->move_to(70,70);
$pdfcr->show_text('HELLO');

Cheers


Davide Rambaldi,
Bioinformatics PhD student.
-----------------------------------------------------
Bioinformatic Group IFOM-IEO Campus
Via Adamello 16, Milano
I-20139 Italy

[t] +39 02574303 066
[e] davide.rambaldi at ifom-ieo-campus.it
[i] http://ciccarelli.group.ifom-ieo-campus.it/fcwiki/DavideRambaldi  
(homepage)
[i] http://www.semm.it             (PhD school)
[i] http://www.btbs.unimib.it/     (Master)

-----------------------------------------------------



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cairographics.org/archives/cairo/attachments/20071220/c98f1016/attachment.htm 


More information about the cairo mailing list