From: Joao C. <jc...@fe...> - 2002-09-17 00:15:03
|
On Monday 16 September 2002 21:20, Alan W. Irwin wrote: > On Mon, 16 Sep 2002, [iso-8859-1] Jo=E3o Cardoso wrote: > > I found that gdImagePalettePixel() is really a macro: > > > > #define gdImagePalettePixel( im, x, y ) (im)->pixels[(y)][(x)] > > > > So, putting it above gd.c:plD_gd_optimise(), makes the unknown symbo= l > > error to disappear, but the seg fault still happens: > > > > [jcard@feup] ./x01c -dev png -o po.png > > Plplot library version: 5.1.0 > > Opened po.png > > Segmentation fault > > I have now fixed this problem (but not the macro problem which I am lea= ving > to Andrew for final decision since I don't know whether or not that mac= ro > would actually work with libgd 1.8.4 with -drvopt optimise). There is something strange with the last x08c.c that I have just cvs comm= ited;=20 colors look strange under the png driver, either with -drvopt optimize or= =20 not. But I thing that it has nothing to do with the macro definition. > But if you > cvs update and work around the gdImagePalettePixel problem by adding th= e > macro, I think you will find the above problem will be gone. Yes, its gone. But I get warnings from freetype: #:~/plplot/tmp> ./x01c -dev png -o po.png -drvopt text,smooth Plplot library version: 5.1.0 Opened po.png *** PLPLOT WARNING *** Possible error defining one of the freetype compatible fonts. *** PLPLOT WARNING *** Possible error defining one of the freetype compatible fonts. *** PLPLOT WARNING *** Possible error defining one of the freetype compatible fonts. *** PLPLOT WARNING *** Possible error defining one of the freetype compatible fonts. *** PLPLOT WARNING *** Possible error defining one of the freetype compatible fonts. *** PLPLOT ERROR *** Loading a font in freetype Program aborted It looks like freetype does not find the specifyed fonts. Can anyone give= me a=20 hint? I have the standard X11 fonts, including type1 and trutype fonts: #: xset q =2E.. Font Path:=20 =2E..,/usr/X11R6/lib/X11/fonts/TTF,/usr/X11R6/lib/X11/fonts/truetype,/usr= /X11R6/lib/X11/fonts/Type1,/usr/X11R6/lib/X11/fonts/URW,... By the way, does anybody knows the (linux/X11) name of the standard 35=20 postcript fonts, the ones that *postscript* printers have by default? Joao > > BTW, Andrew, I have just checked your recent changes, and eveything see= ms > to be fine; x08c gives good results with > no drvopt and with > -drvopt text,smooth,24bit and > -drvopt text,smooth. > > Alan > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Plplot-devel mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-devel |