Loading [MathJax]/extensions/MathZoom.js
Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
OSFont.h
Go to the documentation of this file.
1#ifndef _DOLPHIN_OSFONT_H_
2#define _DOLPHIN_OSFONT_H_
3
4#include <dolphin/types.h>
5#include <dolphin/os/OSUtf.h>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11#define OS_FONT_ENCODE_ANSI 0u
12#define OS_FONT_ENCODE_SJIS 1u
13#define OS_FONT_ENCODE_MAX 5u
14#define OS_FONT_SIZE_ANSI (288 + 131072) // 9 sheets
15#define OS_FONT_SIZE_SJIS (3840 + 1179648) // 1 sheet
16#define OS_FONT_ROM_SIZE_ANSI 0x03000
17#define OS_FONT_ROM_SIZE_SJIS 0x4D000
18
44
46u16 OSSetFontEncode(u16 encode);
48u32 OSLoadFont(OSFontHeader* fontData, void* tmp);
49char* OSGetFontTexture(const char* string, void** image, s32* x, s32* y, s32* width);
50char* OSGetFontWidth(const char* string, s32* width);
51char* OSGetFontTexel(const char* string, void* image, s32 pos, s32 stride, s32* width);
52int OSSetFontWidth(int fixed);
53
54#ifdef __cplusplus
55}
56#endif
57
58#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
static char * tmp[5]
Definition d_a_npc_ashB.cpp:231
static u8 pos[12]
Definition d_a_obj_kago.cpp:839
double x double x
Definition e_atan2.c:58
double x double y
Definition e_atan2.c:58
Definition OSFont.h:19
u16 leading
Definition OSFont.h:27
u8 c1
Definition OSFont.h:40
u16 sheetFormat
Definition OSFont.h:31
u32 sheetSize
Definition OSFont.h:30
u16 fontType
Definition OSFont.h:20
u8 c2
Definition OSFont.h:41
u32 sheetFullSize
Definition OSFont.h:38
u16 firstChar
Definition OSFont.h:21
u32 sheetImage
Definition OSFont.h:37
u16 sheetRow
Definition OSFont.h:33
u16 sheetHeight
Definition OSFont.h:35
u16 width
Definition OSFont.h:26
u16 lastChar
Definition OSFont.h:22
u16 invalChar
Definition OSFont.h:23
u16 cellHeight
Definition OSFont.h:29
u8 c3
Definition OSFont.h:42
u16 sheetColumn
Definition OSFont.h:32
u16 ascent
Definition OSFont.h:24
u16 descent
Definition OSFont.h:25
u16 sheetWidth
Definition OSFont.h:34
u16 cellWidth
Definition OSFont.h:28
u16 widthTable
Definition OSFont.h:36
u8 c0
Definition OSFont.h:39
int BOOL
Definition types.h:30
unsigned long u32
Definition types.h:9
unsigned short int u16
Definition types.h:7
signed long s32
Definition types.h:8
unsigned char u8
Definition types.h:5