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
7extern "C" {
8#endif
9
19
20typedef 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;
45
48static const u8* ParseStringS(u16 encode, const u8* str, OSFontHeader** fontOut, u32* codeOut);
49
50#ifdef __cplusplus
51};
52#endif
53
54#endif /* OSFONT_H */
static const u8 * ParseStringS(u16 encode, const u8 *str, OSFontHeader **fontOut, u32 *codeOut)
OSFontEncode
Definition OSFont.h:10
@ OS_FONT_ENCODE_2
Definition OSFont.h:13
@ OS_FONT_ENCODE_SJIS
Definition OSFont.h:12
@ OS_FONT_ENCODE_UTF16
Definition OSFont.h:15
@ OS_FONT_ENCODE_UTF8
Definition OSFont.h:14
@ OS_FONT_ENCODE_MAX
Definition OSFont.h:17
@ OS_FONT_ENCODE_UTF32
Definition OSFont.h:16
@ OS_FONT_ENCODE_ANSI
Definition OSFont.h:11
u16 OSGetFontEncode(void)
Definition OSFont.c:257
static u32 GetFontCode(u16 param_0, u16 param_1)
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition OSFont.h:20
u16 leading
Definition OSFont.h:28
u16 type
Definition OSFont.h:21
u8 c1
Definition OSFont.h:41
u16 sheetFormat
Definition OSFont.h:32
u32 sheetSize
Definition OSFont.h:31
u8 c2
Definition OSFont.h:42
u16 invalidChar
Definition OSFont.h:24
u32 sheetFullSize
Definition OSFont.h:39
u16 firstChar
Definition OSFont.h:22
u16 widthTableOfs
Definition OSFont.h:37
u16 sheetNumRow
Definition OSFont.h:34
u16 sheetNumCol
Definition OSFont.h:33
u16 sheetHeight
Definition OSFont.h:36
u32 sheetImageOfs
Definition OSFont.h:38
u16 width
Definition OSFont.h:27
u16 lastChar
Definition OSFont.h:23
u16 cellHeight
Definition OSFont.h:30
u8 c3
Definition OSFont.h:43
u16 ascent
Definition OSFont.h:25
u16 descent
Definition OSFont.h:26
u16 sheetWidth
Definition OSFont.h:35
u16 cellWidth
Definition OSFont.h:29
u8 c0
Definition OSFont.h:40
unsigned long u32
Definition types.h:10
unsigned short u16
Definition types.h:9
unsigned char u8
Definition types.h:8