Lines Matching refs:buf
178 * buf, len - buffer and length of text to paint.
186 PaintText(w, gc, x, y, buf, len)
190 unsigned char * buf;
197 Dimension width = XTextWidth(sink->text_sink.font, (char *) buf, len);
204 (int) x, (int) y, (char *) buf, len);
234 unsigned char buf[BUFSIZ];
248 x += PaintText(w, gc, x, y, buf, j);
251 buf[j] = blk.ptr[k];
252 if (buf[j] == LF) /* line feeds ('\n') are not printed. */
255 else if (buf[j] == '\t') {
259 if ((j != 0) && ((temp = PaintText(w, gc, x, y, buf, j)) == 0))
273 else if ( buf[j] < (unsigned char) ' ' ) {
275 buf[j + 1] = buf[j] + '@';
276 buf[j] = '^';
280 buf[j] = ' ';
286 (void) PaintText(w, gc, x, y, buf, j);