blob: 35ddcedf7943b70f7747d3c2f0e0a4576fbde776 (
plain)
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
52
53
54
55
56
|
#ifndef RVL_SDK_OS_FONT_H
#define RVL_SDK_OS_FONT_H
#include <types.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
OS_FONT_ENCODE_ANSI,
OS_FONT_ENCODE_SJIS,
OS_FONT_ENCODE_2,
OS_FONT_ENCODE_UTF8,
OS_FONT_ENCODE_UTF16,
OS_FONT_ENCODE_UTF32,
OS_FONT_ENCODE_MAX
} OSFontEncode;
typedef struct OSFontData {
u16 type;
u16 firstChar;
u16 lastChar;
u16 invalidChar;
u16 ascent;
u16 descent;
u16 charWidth;
u16 lineFeed;
u16 cellWidth;
u16 cellHeight;
u32 texSize;
u16 texFmt;
u16 texNumCol;
u16 texNumRow;
u16 texWidth;
u16 texHeight;
u16 charWidthTblOfs;
u32 fontSheetOfs;
u32 fontSheetSize;
} OSFontData;
u16 OSGetFontEncode(void);
u16 OSSetFontEncode(u16);
u32 OSLoadFont(OSFontData*, void*);
const char* OSGetFontTexel(const char*, void*, s32, s32, u32*);
BOOL OSInitFont(OSFontData*);
const char* OSGetFontTexture(const char*, void**, u32*, u32*, u32*);
const char* OSGetFontWidth(const char*, u32*);
#ifdef __cplusplus
}
#endif
#endif
|