FontOpen

Opens a print stream

int FntOpen (
        int x,
        int y,
        int w,
        int h,
        int isbg,
        int n
)

Arguments

x, y Display start position 
w, h Display area 
isbg Background auto-clear flag 
0: Clear the background to (0,0,0) when displaying 
1: Do not clear the background
n Maximum number of characters that can be drawn 

Return Value

The ID of the print stream that was opened is returned.

Explanation

The stream used for on-screen printing is opened. Subsequently, character strings up to n characters long can be drawn in the rectangular area of the frame buffer specified by (x,y)-(x+w, y+h) using the FntPrint() function.
If isbg has a value of 1, the background is cleared when a character string is drawn.

Notes

Up to 8 streams can be opened simultaneously.
Opened streams cannot be closed until the next FntLoad().