SSBM Decomp
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#include <dolphin/types.h>
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10#define OS_FONT_ENCODE_ANSI 0u
11#define OS_FONT_ENCODE_SJIS 1u
12#define OS_FONT_SIZE_ANSI (288 + 131072) // 9 sheets
13#define OS_FONT_SIZE_SJIS (3840 + 1179648) // 1 sheet
14#define OS_FONT_ROM_SIZE_ANSI 0x03000
15#define OS_FONT_ROM_SIZE_SJIS 0x4D000
16
43
46u32 OSLoadFont(OSFontHeader *fontData, void *temp);
47char *OSGetFontTexture(char *string, void **image, s32 *x, s32 *y, s32 *width);
48char *OSGetFontWidth(char *string, s32 *width);
49char *OSGetFontTexel(char *string, void *image, s32 pos, s32 stride, s32 *width);
50
51#ifdef __cplusplus
52}
53#endif
54
55#endif
char * OSGetFontTexel(char *string, void *image, s32 pos, s32 stride, s32 *width)
u32 OSLoadFont(OSFontHeader *fontData, void *temp)
char * OSGetFontTexture(char *string, void **image, s32 *x, s32 *y, s32 *width)
char * OSGetFontWidth(char *string, s32 *width)
u16 OSGetFontEncode(void)
BOOL OSInitFont(OSFontHeader *fontData)
int BOOL
Definition types.h:20
unsigned long u32
Definition types.h:9
unsigned short int u16
Definition types.h:7
signed long s32
Definition hsd_3B2B.h:1
unsigned char u8
Definition hsd_3B2B.h:2
Definition OSFont.h:18
u16 leading
Definition OSFont.h:26
u8 c1
Definition OSFont.h:39
u16 sheetFormat
Definition OSFont.h:30
u32 sheetSize
Definition OSFont.h:29
u16 fontType
Definition OSFont.h:19
u8 c2
Definition OSFont.h:40
u32 sheetFullSize
Definition OSFont.h:37
u16 firstChar
Definition OSFont.h:20
u32 sheetImage
Definition OSFont.h:36
u16 sheetRow
Definition OSFont.h:32
u16 sheetHeight
Definition OSFont.h:34
u16 width
Definition OSFont.h:25
u16 lastChar
Definition OSFont.h:21
u16 invalChar
Definition OSFont.h:22
u16 cellHeight
Definition OSFont.h:28
u8 c3
Definition OSFont.h:41
u16 sheetColumn
Definition OSFont.h:31
u16 ascent
Definition OSFont.h:23
u16 descent
Definition OSFont.h:24
u16 sheetWidth
Definition OSFont.h:33
u16 cellWidth
Definition OSFont.h:27
u16 widthTable
Definition OSFont.h:35
u8 c0
Definition OSFont.h:38