2
Minimal Xlib port - Internal functions
4
Stefano Bodrato, 5/3/2007
6
$Id: _xfputc.c,v 1.1 2007/12/21 08:04:23 stefano Exp $
15
void _xfputc (char c, char *font, Bool bold)
21
_x_proportional = _y_proportional = 0;
27
//_y_proportional += 8; // compact
28
_y_proportional += 9; // normal line spacing
31
if ((_xchar_proportional = _xfindchar( (char) (c - 32), (char *) font)) == -1) return;
33
if (_x_proportional + _xchar_proportional[0] >= DisplayWidth(0, 0)) _xfputc (13, font, bold);
35
putsprite (SPR_OR, _x_proportional, _y_proportional, _xchar_proportional);
36
if (bold) putsprite (SPR_OR, ++_x_proportional, _y_proportional, _xchar_proportional);
38
_x_proportional += _xchar_proportional[0];