Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
OSFont.c File Reference

Functions

static BOOL IsSjisLeadByte (u8 ch)
 
static BOOL IsSjisTrailByte (u8 ch)
 
static u32 GetFontCode (u16 encode, u16 code)
 
u16 OSGetFontEncode (void)
 
static const u8ParseStringS (u16 encode, const u8 *str, OSFontHeader **fontOut, u32 *codeOut)
 

Variables

static u16 HankakuToCode [192]
 
static u16 Zenkaku2Code [1221]
 
static u16 FontEncode = 0xFFFF
 
static OSFontHeaderFontDataAnsi
 
static OSFontHeaderFontDataSjis
 
static voidParseString
 

Function Documentation

◆ GetFontCode()

static u32 GetFontCode ( u16  encode,
u16  code 
)
static

◆ IsSjisLeadByte()

static BOOL IsSjisLeadByte ( u8  ch)
static

◆ IsSjisTrailByte()

static BOOL IsSjisTrailByte ( u8  ch)
static

◆ OSGetFontEncode()

u16 OSGetFontEncode ( void  )

◆ ParseStringS()

static const u8 * ParseStringS ( u16  encode,
const u8 str,
OSFontHeader **  fontOut,
u32 codeOut 
)
static

Variable Documentation

◆ FontDataAnsi

OSFontHeader* FontDataAnsi
static

◆ FontDataSjis

OSFontHeader* FontDataSjis
static

◆ FontEncode

u16 FontEncode = 0xFFFF
static

◆ HankakuToCode

u16 HankakuToCode[192]
static
Initial value:
= {
0x020C, 0x020D, 0x020E, 0x020F, 0x0210, 0x0211, 0x0212, 0x0213,
0x0214, 0x0215, 0x0216, 0x0217, 0x0218, 0x0219, 0x021A, 0x021B,
0x021C, 0x021D, 0x021E, 0x021F, 0x0220, 0x0221, 0x0222, 0x0223,
0x0224, 0x0225, 0x0226, 0x0227, 0x0228, 0x0229, 0x022A, 0x022B,
0x022C, 0x022D, 0x022E, 0x022F, 0x0230, 0x0231, 0x0232, 0x0233,
0x0234, 0x0235, 0x0236, 0x0237, 0x0238, 0x0239, 0x023A, 0x023B,
0x023C, 0x023D, 0x023E, 0x023F, 0x0240, 0x0241, 0x0242, 0x0243,
0x0244, 0x0245, 0x0246, 0x0247, 0x0248, 0x0249, 0x024A, 0x024B,
0x024C, 0x024D, 0x024E, 0x024F, 0x0250, 0x0251, 0x0252, 0x0253,
0x0254, 0x0255, 0x0256, 0x0257, 0x0258, 0x0259, 0x025A, 0x025B,
0x025C, 0x025D, 0x025E, 0x025F, 0x0260, 0x0261, 0x0262, 0x0263,
0x0264, 0x0265, 0x0266, 0x0267, 0x0268, 0x0269, 0x026A, 0x020C,
0x020C, 0x020C, 0x020C, 0x020C, 0x020C, 0x020C, 0x020C, 0x020C,
0x020C, 0x020C, 0x020C, 0x020C, 0x020C, 0x020C, 0x020C, 0x020C,
0x020C, 0x020C, 0x020C, 0x020C, 0x020C, 0x020C, 0x020C, 0x020C,
0x020C, 0x020C, 0x020C, 0x020C, 0x020C, 0x020C, 0x020C, 0x020C,
0x020C, 0x026B, 0x026C, 0x026D, 0x026E, 0x026F, 0x0270, 0x0271,
0x0272, 0x0273, 0x0274, 0x0275, 0x0276, 0x0277, 0x0278, 0x0279,
0x027A, 0x027B, 0x027C, 0x027D, 0x027E, 0x027F, 0x0280, 0x0281,
0x0282, 0x0283, 0x0284, 0x0285, 0x0286, 0x0287, 0x0288, 0x0289,
0x028A, 0x028B, 0x028C, 0x028D, 0x028E, 0x028F, 0x0290, 0x0291,
0x0292, 0x0293, 0x0294, 0x0295, 0x0296, 0x0297, 0x0298, 0x0299,
0x029A, 0x029B, 0x029C, 0x029D, 0x029E, 0x029F, 0x02A0, 0x02A1,
0x02A2, 0x02A3, 0x02A4, 0x02A5, 0x02A6, 0x02A7, 0x02A8, 0x02A9,
}

◆ ParseString

void* ParseString
static

◆ Zenkaku2Code

u16 Zenkaku2Code[1221]
static