NAME
mktext - build a basic picture of MEGATEK characters
SYNOPSIS
#include <mpict_p.h>
PICT mktext (string, tsize)
char *string;
int tsize;
DESCRIPTION
mktext
build a basic picture of characters using the built-in MEGATEK
character set. The character string beginning at the address passed
in
string
provides the characters for building the picture. One of eight
character sizes (0-7) is selected by
tsize.
tsize width height
===== ===== ======
0 12 18
1 24 36
2 30 54
3 48 72
4 60 90
5 72 108
6 84 126
7 96 144
mktext
returns a
PICT,
a pointer to picture structure that can be used as an argument to
mkpic(3U)
,
mkpar(3U)
, or
mktop(3U)
to build complex or top pictures.
SEE ALSO
mkpic(3U)
,
mkpar(3U)
,
mktop(3U)
DIAGNOSTICS
mktext
prints an error message and returns EOP for the following reasons:
-
An empty string is provided.
-
tsize
is out of range.
-
A
malloc
error occurs.