KanjiFntOpen

Opens a print stream

int KanjiFntOpen (
        int x,
        int y,
        int w,
        int h,
        int dx,
        int dy,
        int cx,
        int cy,
        int isbg,
        int n
)

Arguments

x, y Display start positions
w, h Display area
dx,dy Kanji font pattern frame buffer address
cx,cy Kanji CLUT frame buffer address
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 KanjiFntPrint() 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 KanjiFntLoad().
The Kanji font area must not overlap with the frame buffer area used by the application.

See Also

KanjiFntPrint(), KanjiFntLoad()