The original font is a bit of a mess, and includes many duplicate characters. I decided to reorganize the characters in a new set of glyphs, in derivced/font.png. This also includes very basic parsing for text data.
48 lines
1.3 KiB
C++
48 lines
1.3 KiB
C++
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
struct control_t {
|
|
static constexpr uint8_t next = 0x80;
|
|
static constexpr uint8_t line = 0x81;
|
|
static constexpr uint8_t para = 0x82;
|
|
static constexpr uint8_t cont = 0x83;
|
|
static constexpr uint8_t done = 0x84;
|
|
static constexpr uint8_t prompt = 0x85;
|
|
static constexpr uint8_t page = 0x86;
|
|
};
|
|
|
|
struct ligatures_t {
|
|
static constexpr uint8_t tm = 0x90;
|
|
static constexpr uint8_t pc = 0x91;
|
|
static constexpr uint8_t trainer = 0x92;
|
|
static constexpr uint8_t rocket = 0x93;
|
|
static constexpr uint8_t poke = 0x94;
|
|
static constexpr uint8_t double_ellipsis = 0x95;
|
|
static constexpr uint8_t pkmn = 0x96;
|
|
};
|
|
|
|
struct extended_t {
|
|
static constexpr uint8_t jpy = 0xa5; // ¥
|
|
static constexpr uint8_t e = 0xe9; // é
|
|
static constexpr uint8_t ellipsis = 0xa8; // …
|
|
static constexpr uint8_t pk = 0xb2; // ᴾₖ
|
|
static constexpr uint8_t mn = 0xb3; // ᴹₙ
|
|
static constexpr uint8_t times = 0xd7; // ×
|
|
};
|
|
|
|
/*
|
|
PCCharText:: db "PC@"
|
|
TMCharText:: db "TM@"
|
|
TrainerCharText:: db "TRAINER@"
|
|
RocketCharText:: db "ROCKET@"
|
|
PlacePOKeText:: db "POKé@"
|
|
SixDotsCharText:: db "……@"
|
|
PlacePKMNText:: db "<PK><MN>@"
|
|
|
|
dict "<PLAYER>", PrintPlayerName
|
|
dict "<RIVAL>", PrintRivalName
|
|
dict "<TARGET>", PlaceMoveTargetsName
|
|
dict "<USER>", PlaceMoveUsersName
|
|
*/
|