Hi Alan & Arjen
Thanks for your attention. Hope I am posting this correctly. One of the
first things I did when I built Plplot5.11.1 was to run the c code
examples. Example x07c.c runs fine and displays the character #(855) –
an arrow head in a Postscript file. All very jolly! So, the fonts must
be built into the library. My program shows nothing. But maybe the
comparison is false because I plot using plptex while x07c.c uses a
different method, which I confess I am not clear about. It does print
some characters correctly e.g. #(766) - the infinity symbol.
I have been using Plplot for a long time starting with an ARM Acorn
Archimedes. I built Plplot5.00 back in the 90's using a collection of
.bat files. I still have it and it plots #(855) fine. I thought it was
time to upgrade... I build using CMAKE 3.4.0-rc2 in its GUI form. It
didn't seem to want to left me build a pdf device. Maybe I am not using
it correctly.
A simplified version of my program is:
/*
FontTest
*/
#include <math.h>
#include <plplot.h>
int main()
{
int i;
PLFLT x,y,dx,dy,theta,dTheta,xMin,xMax,yMin,yMax;
xMin = -4.0; xMax = 1.0; yMin = -2.0; yMax = 2.0;
/* Set up viewport and window, but do not draw box */
plinit();
plenv( xMin, xMax, yMin, yMax, 0, 0 );
plfontld(1);plfont(1);
x = -2.0; y = 2.0*exp(-x*x/4.0); dy = -x*exp(-x*x/4.0); /* Find
arrow slope */
plptex(x, y,1.0,dy,0.5,"#(855)"); /* C2 Arrow */
plptex(x,-y,dx,dy,0.5,"#(855)"); /* C1 Arrow */
plptex(x,0,-1.0,0.0,0.5,"#(855)"); /* Gamma Arrow */
plend();
return 1;
}
Best Wishes, Peter
------------------------------------------------------------------------------
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel