#include <ggi/ggi.h> int ggiPutc(ggi_visual_t vis, int x, int y, char c); int ggiPuts(ggi_visual_t vis, int x, int y, const char *str); int ggiGetCharSize(ggi_visual_t vis, int *width, int *height);
ggiPutc puts a single character on a graphical visual.
ggiPuts puts multiple characters (from a C-style null-terminated string) at once. No special handling is applied to control characters like CR or LF. The associated glyph for control characters will be displayed. ggiPuts also only clips text at the clipping rectangle and does not wrap text.
ggiGetCharSize obtains the size of the character cell, in pixels. This function allows the application to correctly position the text output. Character size must always be checked and application should not assume that it will be constant across targets or even modes. Visuals must have a mode set before querying the character size. It means that if you want to use a visual size which depends on the character size, you might have to iterate over ggiSetMode(3) and ggiGetCharSize to get it right.