1gl_write(3) Svgalib User Manual gl_write(3)
2
3
4
6 gl_write, gl_writen - write a text string
7
8
10 #include <vgagl.h>
11
12 void gl_write(int x, int y, char *s);
13 void gl_writen(int x, int y, int n ,char *s);
14
15
17 gl_write writes the zero terminated string s to position (x, y) using
18 the currently selected font.
19
20 gl_writen works similarly, but writes exactly n characters, thus allow‐
21 ing to use the character 0.
22
23 The kind of text draw operation is set with gl_setwritemode(3).
24
25 BEWARE! Prior to the of use of gl_write(3) and gl_writen(3) you must
26 set a font.
27
28 A good default initialization sequence is:
29
30 gl_setfont(8, 8, gl_font8x8);
31 gl_setwritemode(FONT_COMPRESSED + WRITEMODE_OVERWRITE);
32 gl_setfontcolors(0, vga_white());
33
34
36 svgalib(7), vgagl(7), svgalib.conf(5), threedkit(7), testgl(1),
37 gl_printf(3), gl_colorfont(3), gl_expandfont(3), gl_font8x8(3), gl_set‐
38 font(3), gl_setfontcolors(3), gl_setwritemode(3).
39
40
42 This manual page was edited by Michael Weller <eowmob@exp-math.uni-
43 essen.de>. The exact source of the referenced demo as well as of the
44 original documentation is unknown.
45
46 It is very likely that both are at least to some extent are due to Harm
47 Hanemaayer <H.Hanemaayer@inter.nl.net>.
48
49 Occasionally this might be wrong. I hereby asked to be excused by the
50 original author and will happily accept any additions or corrections to
51 this first version of the svgalib manual.
52
53
54
55Svgalib (>= 1.2.11) 2 Aug 1997 gl_write(3)