Skip to Content
The Alchemy Project

include/window/text_font.h

The kanji glyphs and the text marks drawn with characters.

Included by file_screen.c, articles.c, glyph_arm.c, screens_internal.h and window_internal.h.

Macros

NameDescription
#defineKANJI_GLYPH_SIZE 24bytes
#defineKANJI_WIDTH 10pixels
#defineKANA_WO 134The character codes of kana that start runs in the font's order (charmap_ja.tsv), as the File Screen's password spells from them.
#defineKANA_A 145あ, then い to そ
#defineKANA_KA 150か, then き to そ
#defineKANA_TA 224た, then ち to ん
#defineKANA_TE 227て
#defineKANA_TO 228と
#defineKANA_HA 234は, then ひ to ほ

Enumerations

NameDescription
enumTEXT_MARK_GLYPH { TEXT_MARK_NONE, TEXT_MARK_VOICED, TEXT_MARK_SEMIVOICED }The marks a kana is drawn with: their character codes.

Variables

NameDescription
extern const Uint8FontKanjiGlyphs []In Japanese, the glyphs of character codes from 256: KANJI_GLYPH_SIZE bytes each, drawn KANJI_WIDTH pixels wide.
extern Uint16FontMarkGlyphCodes []The mark each of a kana's top-bit values stands for (TEXT_CODE_MARK_SHIFT): none, voiced, semi-voiced, none.

Description

The kanji glyphs and the text marks drawn with characters.

Macros in detail

KANJI_GLYPH_SIZE

#define KANJI_GLYPH_SIZE 24

bytes

Referenced by mnGlyphDrawArm() and mnTextDrawGlyphPair().

Definition at line 17 of file text_font.h.

KANJI_WIDTH

#define KANJI_WIDTH 10

pixels

Referenced by mnGlyphDrawArm() and mnTextDrawGlyphPair().

Definition at line 18 of file text_font.h.

KANA_WO

#define KANA_WO 134

The character codes of kana that start runs in the font's order (charmap_ja.tsv), as the File Screen's password spells from them.

を

Definition at line 31 of file text_font.h.

KANA_A

#define KANA_A 145

あ, then い to そ

Definition at line 32 of file text_font.h.

KANA_KA

#define KANA_KA 150

か, then き to そ

Definition at line 33 of file text_font.h.

KANA_TA

#define KANA_TA 224

た, then ち to ん

Definition at line 34 of file text_font.h.

KANA_TE

#define KANA_TE 227

て

Definition at line 35 of file text_font.h.

KANA_TO

#define KANA_TO 228

と

Definition at line 36 of file text_font.h.

KANA_HA

#define KANA_HA 234

は, then ひ to ほ

Definition at line 37 of file text_font.h.

Enumerations in detail

TEXT_MARK_GLYPH

enum TEXT_MARK_GLYPH

The marks a kana is drawn with: their character codes.

EnumeratorValueDescription
TEXT_MARK_NONE0
TEXT_MARK_VOICED222the voiced mark (dakuten)
TEXT_MARK_SEMIVOICED223the semi-voiced mark (handakuten)

Definition at line 21 of file text_font.h.

Variables in detail

FontKanjiGlyphs

extern const Uint8 FontKanjiGlyphs[]

In Japanese, the glyphs of character codes from 256: KANJI_GLYPH_SIZE bytes each, drawn KANJI_WIDTH pixels wide.

Referenced by mnGlyphDrawArm() and mnTextDrawGlyphPair().

Definition at line 11 of file text_font.h.