d525d9e4a4356d3b84af1e6064ffad41c8826106 galt Thu Jul 30 13:58:34 2015 -0700 fixing function description diff --git src/lib/psGfx.c src/lib/psGfx.c index a7b1088..c0522eb 100644 --- src/lib/psGfx.c +++ src/lib/psGfx.c @@ -199,31 +199,32 @@ void psTimesFont(struct psGfx *ps, double size) /* Set font to times of a certain size. */ { FILE *f = ps->f; fprintf(f, "/Helvetica findfont "); /* Note the 1.2 and the 1.0 below seem to get it to * position about where the stuff developed for pixel * based systems expects it. It is all a kludge though! */ fprintf(f, "%f scalefont setfont\n", -size*ps->yScale*1.2); ps->fontHeight = size*0.8; } void psTextOutEscaped(struct psGfx *ps, char *text) -/* Output espcaed text. */ +/* Output post-script-escaped text. + * Notice that ps uses escaping similar to C itself.*/ { char c; while ((c = *text++) != 0) { if (c == '(') fprintf(ps->f, "\\("); // left-paren else if (c == ')') fprintf(ps->f, "\\)"); // right-paren else if (c == '\\') fprintf(ps->f, "\\\\"); // back-slash else if (c == '\n') fprintf(ps->f, "\\n"); // new-line else if (c == '\r') fprintf(ps->f, "\\r"); // carriage-return else if (c == '\t')