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 _DOLPHIN_OSFONT_H_
2#define _DOLPHIN_OSFONT_H_
3
4#ifdef __REVOLUTION_SDK__
6#else
7#include <dolphin/types.h>
8#include <dolphin/os/OSUtf.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14#define OS_FONT_ENCODE_ANSI 0u
15#define OS_FONT_ENCODE_SJIS 1u
16#define OS_FONT_ENCODE_MAX 5u
17#define OS_FONT_SIZE_ANSI (288 + 131072) // 9 sheets
18#define OS_FONT_SIZE_SJIS (3840 + 1179648) // 1 sheet
19#define OS_FONT_ROM_SIZE_ANSI 0x03000
20#define OS_FONT_ROM_SIZE_SJIS 0x4D000
21
47
49u16 OSSetFontEncode(u16 encode);
51u32 OSLoadFont(OSFontHeader* fontData, void* tmp);
52char* OSGetFontTexture(const char* string, void** image, s32* x, s32* y, s32* width);
53char* OSGetFontWidth(const char* string, s32* width);
54char* OSGetFontTexel(const char* string, void* image, s32 pos, s32 stride, s32* width);
55int OSSetFontWidth(int fixed);
56
57#ifdef __cplusplus
58}
59#endif
60
61#endif
62#endif
int OSSetFontWidth(int fixed)
Definition OSFont.c:747
char * OSGetFontTexel(const char *string, void *image, s32 pos, s32 stride, s32 *width)
Definition OSFont.c:557
u16 OSSetFontEncode(u16 encode)
Definition OSFont.c:346
u16 OSGetFontEncode(void)
Definition OSFont.c:324
BOOL OSInitFont(OSFontHeader *fontData)
Definition OSFont.c:639
struct OSFontHeader OSFontHeader
char * OSGetFontTexture(const char *string, void **image, s32 *x, s32 *y, s32 *width)
Definition OSFont.c:705
u32 OSLoadFont(OSFontHeader *fontData, void *tmp)
Definition OSFont.c:433
char * OSGetFontWidth(const char *string, s32 *width)
Definition OSFont.c:732
int BOOL
Definition types.h:33
unsigned long u32
Definition types.h:12
unsigned short int u16
Definition types.h:10
signed long s32
Definition types.h:11
unsigned char u8
Definition types.h:8
double x double x
Definition e_atan2.c:58
double x double y
Definition e_atan2.c:58
Definition OSFont.h:22
u16 leading
Definition OSFont.h:30
u8 c1
Definition OSFont.h:43
u16 sheetFormat
Definition OSFont.h:34
u32 sheetSize
Definition OSFont.h:33
u16 fontType
Definition OSFont.h:23
u8 c2
Definition OSFont.h:44
u32 sheetFullSize
Definition OSFont.h:41
u16 firstChar
Definition OSFont.h:24
u32 sheetImage
Definition OSFont.h:40
u16 sheetRow
Definition OSFont.h:36
u16 sheetHeight
Definition OSFont.h:38
u16 width
Definition OSFont.h:29
u16 lastChar
Definition OSFont.h:25
u16 invalChar
Definition OSFont.h:26
u16 cellHeight
Definition OSFont.h:32
u8 c3
Definition OSFont.h:45
u16 sheetColumn
Definition OSFont.h:35
u16 ascent
Definition OSFont.h:27
u16 descent
Definition OSFont.h:28
u16 sheetWidth
Definition OSFont.h:37
u16 cellWidth
Definition OSFont.h:31
u16 widthTable
Definition OSFont.h:39
u8 c0
Definition OSFont.h:42