font.h
1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*---------------------------------------------------------------------*
Copyright (C) 1998 Nintendo.
$RCSfile: font.h,v $
$Revision: 1.1.1.1 $
$Date: 2002/05/02 03:27:09 $
*---------------------------------------------------------------------*/
/*
Fonts: Definitions and externals.
*/
#ifndef __FONT_H__
#define __FONT_H__
#include <PR/sp.h>
#include "main.h"
#define ERROR_MES_SIZE 26
typedef struct sp2d_font_struct {
char *index_string;
Bitmap *bitmaps;
char *img;
} Font;
extern OSPiHandle *handler;
extern OSMesgQueue dmaMessageQ;
extern OSMesg dmaMessageBuf;
extern OSIoMesg dmaIOMessageBuf;
extern Font lcase_font;
extern unsigned char kbuffer[];
extern void text_sprite( Sprite *, char *, Font *, int , int );
extern s32 setupkanji(void);
extern void font_init( Gfx ** );
extern void font_finish( Gfx ** );
extern void font_show_num( Gfx **, int );
extern void font_show_string( Gfx **, char * );
extern void jfont_show_string( Gfx **, u16 );
extern void font_set_scale( double, double );
extern void font_set_color( unsigned char, unsigned char, unsigned char, unsigned char );
extern void font_set_win( int, int );
extern void font_set_pos( int, int );
extern void font_set_transparent( int );
#endif