Home| base |src.lib|graphic|fbuffer| FrameBufferTextBox Index

FrameBufferTextBox

Syntax
int FrameBufferTextBox(struct FrameBufferFont *fnt, int num,char *txt,int *box);
Header
base/rfbuffer.h
Library
rfbuf
Description

The FrameBufferTextbox function calculates the bounding box of text plotted to a frame buffer.

The argument fnt is a pointer to the structure containing the frame buffer font.

The number of character to plot is given by the argument num, and the characters are taken from the array pointed to by the argument txt.

The calculated width, total height, and ascent are stored in the array pointed to by the argument box.

Returns
Returns zero on success. On error, (-1) is returned.
Errors
On error, (-1) is returned.
Example
None