Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
OSFont.h
Go to the documentation of this file.
1
#ifndef OSFONT_H
2
#define OSFONT_H
3
4
#include "
dolphin/types.h
"
5
6
#ifdef __cplusplus
7
extern
"C"
{
8
#endif
9
10
typedef
enum
{
11
OS_FONT_ENCODE_ANSI
,
12
OS_FONT_ENCODE_SJIS
,
13
OS_FONT_ENCODE_2
,
14
OS_FONT_ENCODE_UTF8
,
15
OS_FONT_ENCODE_UTF16
,
16
OS_FONT_ENCODE_UTF32
,
17
OS_FONT_ENCODE_MAX
18
}
OSFontEncode
;
19
20
typedef
struct
OSFontHeader
{
21
/* 0x00 */
u16
type
;
22
/* 0x02 */
u16
firstChar
;
23
/* 0x04 */
u16
lastChar
;
24
/* 0x06 */
u16
invalidChar
;
25
/* 0x08 */
u16
ascent
;
26
/* 0x0A */
u16
descent
;
27
/* 0x0C */
u16
width
;
28
/* 0x0E */
u16
leading
;
29
/* 0x10 */
u16
cellWidth
;
30
/* 0x12 */
u16
cellHeight
;
31
/* 0x14 */
u32
sheetSize
;
32
/* 0x18 */
u16
sheetFormat
;
33
/* 0x1A */
u16
sheetNumCol
;
34
/* 0x1C */
u16
sheetNumRow
;
35
/* 0x1E */
u16
sheetWidth
;
36
/* 0x20 */
u16
sheetHeight
;
37
/* 0x22 */
u16
widthTableOfs
;
38
/* 0x24 */
u32
sheetImageOfs
;
39
/* 0x28 */
u32
sheetFullSize
;
40
/* 0x2C */
u8
c0
;
41
/* 0x2D */
u8
c1
;
42
/* 0x2E */
u8
c2
;
43
/* 0x2F */
u8
c3
;
44
}
OSFontHeader
;
45
46
static
u32
GetFontCode
(
u16
param_0
,
u16
param_1
);
47
u16
OSGetFontEncode
(
void
);
48
static
const
u8
*
ParseStringS
(
u16
encode,
const
u8
* str,
OSFontHeader
**
fontOut
,
u32
*
codeOut
);
49
50
#ifdef __cplusplus
51
};
52
#endif
53
54
#endif
/* OSFONT_H */
ParseStringS
static const u8 * ParseStringS(u16 encode, const u8 *str, OSFontHeader **fontOut, u32 *codeOut)
OSFontEncode
OSFontEncode
Definition
OSFont.h:10
OS_FONT_ENCODE_2
@ OS_FONT_ENCODE_2
Definition
OSFont.h:13
OS_FONT_ENCODE_SJIS
@ OS_FONT_ENCODE_SJIS
Definition
OSFont.h:12
OS_FONT_ENCODE_UTF16
@ OS_FONT_ENCODE_UTF16
Definition
OSFont.h:15
OS_FONT_ENCODE_UTF8
@ OS_FONT_ENCODE_UTF8
Definition
OSFont.h:14
OS_FONT_ENCODE_MAX
@ OS_FONT_ENCODE_MAX
Definition
OSFont.h:17
OS_FONT_ENCODE_UTF32
@ OS_FONT_ENCODE_UTF32
Definition
OSFont.h:16
OS_FONT_ENCODE_ANSI
@ OS_FONT_ENCODE_ANSI
Definition
OSFont.h:11
OSGetFontEncode
u16 OSGetFontEncode(void)
Definition
OSFont.c:257
GetFontCode
static u32 GetFontCode(u16 param_0, u16 param_1)
cLib_calcTimer
T cLib_calcTimer(T *value)
Definition
c_lib.h:74
OSFontHeader
Definition
OSFont.h:20
OSFontHeader::leading
u16 leading
Definition
OSFont.h:28
OSFontHeader::type
u16 type
Definition
OSFont.h:21
OSFontHeader::c1
u8 c1
Definition
OSFont.h:41
OSFontHeader::sheetFormat
u16 sheetFormat
Definition
OSFont.h:32
OSFontHeader::sheetSize
u32 sheetSize
Definition
OSFont.h:31
OSFontHeader::c2
u8 c2
Definition
OSFont.h:42
OSFontHeader::invalidChar
u16 invalidChar
Definition
OSFont.h:24
OSFontHeader::sheetFullSize
u32 sheetFullSize
Definition
OSFont.h:39
OSFontHeader::firstChar
u16 firstChar
Definition
OSFont.h:22
OSFontHeader::widthTableOfs
u16 widthTableOfs
Definition
OSFont.h:37
OSFontHeader::sheetNumRow
u16 sheetNumRow
Definition
OSFont.h:34
OSFontHeader::sheetNumCol
u16 sheetNumCol
Definition
OSFont.h:33
OSFontHeader::sheetHeight
u16 sheetHeight
Definition
OSFont.h:36
OSFontHeader::sheetImageOfs
u32 sheetImageOfs
Definition
OSFont.h:38
OSFontHeader::width
u16 width
Definition
OSFont.h:27
OSFontHeader::lastChar
u16 lastChar
Definition
OSFont.h:23
OSFontHeader::cellHeight
u16 cellHeight
Definition
OSFont.h:30
OSFontHeader::c3
u8 c3
Definition
OSFont.h:43
OSFontHeader::ascent
u16 ascent
Definition
OSFont.h:25
OSFontHeader::descent
u16 descent
Definition
OSFont.h:26
OSFontHeader::sheetWidth
u16 sheetWidth
Definition
OSFont.h:35
OSFontHeader::cellWidth
u16 cellWidth
Definition
OSFont.h:29
OSFontHeader::c0
u8 c0
Definition
OSFont.h:40
types.h
u32
unsigned long u32
Definition
types.h:10
u16
unsigned short u16
Definition
types.h:9
u8
unsigned char u8
Definition
types.h:8
include
dolphin
os
OSFont.h
Generated by
1.9.8