PostScriptText
Syntax | ||
int PostScriptText(struct PostScript *ptr, struct PostScriptMatrix *matrix, char *fname,float fsize, float x,float y,int num,char *txt, unsigned int color, struct PostScriptClip *clip); | ||
Header | ||
base/rps.h | ||
Library | ||
rps | ||
Description | ||
The The argument ptr is a pointer to the PostScript control structure. The argument matrix is an optional transformation matrix that can be applied to the rectangle. If this is set to a The zero terminated string pointed to by the argument fname gives thhe name of the font. The size of the font is given by the argument fsize. The position at which the text is plotted is given by the arguments x, and y. The number of character to plot is given by the argument num, and the characters are taken from the array pointed to by the argument txt. The color used to plot the text is given by the color which is a 24-bit number that represents the red,green and blue components of the color as 8-bit number. The red channel occupies the most significant bits and the blue channel occupies the least significant bits. The clipping polygon is given by the argument clip. If this is set to a | ||
Returns | ||
Returns zero on success. On error, (-1) is returned. | ||
Errors | ||
On error, (-1) is returned. | ||
Example | ||
PostScriptText
|