Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
font.c File Reference
#include "engine/game.h"
Include dependency graph for font.c:

Go to the source code of this file.

Functions

void loadFont (void)
 Loads the font's images into VRAM and starts loading the menu sprites.
 
s16 decodeChar (u8 *s, u8 mode, TextStyle *font)
 The next character as kind << 8 | value (see Font); mode set for Shift-JIS text.
 

Variables

TextStyle FONT_STYLES [4]
 Style 0 is unused; the others have lines of 14, 11 and 9 pixels.
 
s32 FONT_CODE_LENGTHS [11] = { 1, 2, 3, 2, 5, 3, 3, 2, 3, 2, 0 }
 The length of each control code, with its arguments.
 
Font FONT = { FONT_STYLES, FONT_CODE_LENGTHS, loadFont, (s16 (*)())decodeChar }
 decode is declared without a prototype, as callers would truncate the u8 mode, so decodeChar is cast to it
 

Function Documentation

◆ loadFont()

void loadFont ( void  )

Loads the font's images into VRAM and starts loading the menu sprites.

Definition at line 4 of file font.c.

Here is the call graph for this function:

◆ decodeChar()

s16 decodeChar ( u8 *  s,
u8  mode,
TextStyle *  font 
)

The next character as kind << 8 | value (see Font); mode set for Shift-JIS text.

Definition at line 16 of file font.c.

Variable Documentation

◆ FONT_STYLES

TextStyle FONT_STYLES[4]
Initial value:
= {
{ 0xFF, 0, 0, 0, ((void *)0) , ((void *)0) , 0, 0 },
}
GlyphMap FONT_ICON_MAP[]
Definition text_tools.c:244
GlyphMap FONT_GLYPH_MAP[]
The font's Shift-JIS codes of its glyphs and icons, up to 0xFFFF.
Definition text_tools.c:202
Glyph FONT_ICONS_2[114]
Definition text_tools.c:671
Glyph FONT_GLYPHS_3[230]
Definition text_tools.c:752
Glyph FONT_ICONS_1[114]
Definition text_tools.c:431
Glyph FONT_GLYPHS_2[230]
Definition text_tools.c:512
Glyph FONT_ICONS_3[114]
Definition text_tools.c:911
Glyph FONT_GLYPHS_1[230]
The font's three sheets (FONT_STYLES), each with its glyphs and its icons.
Definition text_tools.c:272

Style 0 is unused; the others have lines of 14, 11 and 9 pixels.

Definition at line 66 of file font.c.

◆ FONT_CODE_LENGTHS

s32 FONT_CODE_LENGTHS[11] = { 1, 2, 3, 2, 5, 3, 3, 2, 3, 2, 0 }

The length of each control code, with its arguments.

Definition at line 74 of file font.c.

◆ FONT

decode is declared without a prototype, as callers would truncate the u8 mode, so decodeChar is cast to it

Definition at line 78 of file font.c.

Referenced by createTextWindow(), main(), measureText(), processTextChar(), STDWTITL_tickMovie(), textCodeInsert(), textCodePageBreak(), textWindowDraw(), textWindowInsertPlayerName(), textWindowSetStyle(), and textWindowShowPage().