File: m_text.c

package info (click to toggle)
plotutils 2.4.1-15
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 11,072 kB
  • ctags: 6,952
  • sloc: ansic: 76,305; cpp: 12,402; sh: 8,475; yacc: 2,604; makefile: 894; lex: 144
file content (29 lines) | stat: -rw-r--r-- 814 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include "sys-defines.h"
#include "extern.h"

void
#ifdef _HAVE_PROTOS
_m_paint_text_string_with_escapes (R___(Plotter *_plotter) const unsigned char *s, int h_just, int v_just)
#else
_m_paint_text_string_with_escapes (R___(_plotter) s, h_just, v_just)
     S___(Plotter *_plotter;)
     const unsigned char *s;
     int h_just;
     int v_just;
#endif
{
  _m_set_attributes (R___(_plotter) 
		     PL_ATTR_POSITION
		     | PL_ATTR_TRANSFORMATION_MATRIX 
		     | PL_ATTR_PEN_COLOR | PL_ATTR_PEN_TYPE
		     | PL_ATTR_FONT_NAME | PL_ATTR_FONT_SIZE
		     | PL_ATTR_TEXT_ANGLE);

  _m_emit_op_code (R___(_plotter) O_ALABEL);
  _m_emit_op_code (R___(_plotter) h_just);
  _m_emit_op_code (R___(_plotter) v_just);
  _m_emit_string (R___(_plotter) (const char *)s);
  _m_emit_terminator (S___(_plotter));

  return;
}