Added NBSP and up+down arrows to all fonts (#5767)
Co-authored-by: Hedara <hedara90@gmail.com>
|
@ -46,6 +46,8 @@ LV = 34
|
||||||
'=' = 35
|
'=' = 35
|
||||||
';' = 36
|
';' = 36
|
||||||
V_D_ARROW = 38
|
V_D_ARROW = 38
|
||||||
|
NBSP = 39
|
||||||
|
'~' = 39
|
||||||
'¿' = 51
|
'¿' = 51
|
||||||
'¡' = 52
|
'¡' = 52
|
||||||
PK = 53
|
PK = 53
|
||||||
|
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 3 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
@ -54,6 +54,7 @@
|
||||||
#define CHAR_SEMICOLON 0x36
|
#define CHAR_SEMICOLON 0x36
|
||||||
#define CHAR_BARD_WORD_DELIMIT 0x37 // Empty space to separate words in Bard's song
|
#define CHAR_BARD_WORD_DELIMIT 0x37 // Empty space to separate words in Bard's song
|
||||||
#define CHAR_V_D_ARROW 0x38
|
#define CHAR_V_D_ARROW 0x38
|
||||||
|
#define CHAR_NBSP 0x39
|
||||||
#define CHAR_INV_QUESTION_MARK 0x51
|
#define CHAR_INV_QUESTION_MARK 0x51
|
||||||
#define CHAR_INV_EXCL_MARK 0x52
|
#define CHAR_INV_EXCL_MARK 0x52
|
||||||
#define CHAR_PK 0x53
|
#define CHAR_PK 0x53
|
||||||
|
|
|
@ -3115,7 +3115,10 @@ u32 BattleStringExpandPlaceholders(const u8 *src, u8 *dst, u32 dstSize)
|
||||||
{
|
{
|
||||||
while (*toCpy != EOS)
|
while (*toCpy != EOS)
|
||||||
{
|
{
|
||||||
dst[dstID] = *toCpy;
|
if (*toCpy == CHAR_SPACE)
|
||||||
|
dst[dstID] = CHAR_NBSP;
|
||||||
|
else
|
||||||
|
dst[dstID] = *toCpy;
|
||||||
dstID++;
|
dstID++;
|
||||||
toCpy++;
|
toCpy++;
|
||||||
}
|
}
|
||||||
|
|
16
src/fonts.c
|
@ -5,7 +5,7 @@ ALIGNED(4) const u8 gFontSmallNarrowLatinGlyphWidths[] = {
|
||||||
3, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 4, 4, 5, 5, 5,
|
3, 5, 5, 5, 5, 5, 5, 5, 5, 4, 3, 4, 4, 5, 5, 5,
|
||||||
5, 5, 5, 5, 5, 5, 5, 5, 3, 4, 5, 5, 5, 5, 4, 3,
|
5, 5, 5, 5, 5, 5, 5, 5, 3, 4, 5, 5, 5, 5, 4, 3,
|
||||||
4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 8, 5, 6, 3,
|
4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 8, 5, 6, 3,
|
||||||
3, 3, 3, 3, 8, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
3, 3, 3, 3, 8, 0, 3, 3, 7, 3, 3, 3, 3, 3, 3, 3,
|
||||||
3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
||||||
5, 5, 3, 8, 8, 8, 8, 8, 8, 8, 4, 5, 4, 4, 3, 3,
|
5, 5, 3, 8, 8, 8, 8, 8, 8, 8, 4, 5, 4, 4, 3, 3,
|
||||||
3, 3, 3, 3, 3, 3, 3, 3, 5, 3, 3, 3, 3, 3, 3, 4,
|
3, 3, 3, 3, 3, 3, 3, 3, 5, 3, 3, 3, 3, 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3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
3, 3, 3, 3, 3, 3, 3, 3, 7, 3, 3, 3, 3, 3, 3, 3,
|
||||||
5, 5, 4, 8, 8, 8, 7, 8, 8, 4, 4, 6, 4, 4, 3, 3,
|
5, 5, 4, 8, 8, 8, 7, 8, 8, 4, 4, 6, 4, 4, 3, 3,
|
||||||
3, 3, 3, 3, 3, 3, 3, 3, 4, 3, 3, 3, 3, 3, 3, 4,
|
3, 3, 3, 3, 3, 3, 3, 3, 4, 3, 3, 3, 3, 3, 3, 4,
|
||||||
3, 3, 3, 3, 3, 3, 3, 5, 3, 7, 7, 7, 7, 0, 0, 3,
|
3, 3, 3, 3, 3, 3, 3, 5, 3, 7, 7, 7, 7, 0, 0, 3,
|
||||||
|
|
|
@ -1160,6 +1160,7 @@ static s32 TryMessage(s32 i, s32 n, const u8 *string)
|
||||||
switch (string[j])
|
switch (string[j])
|
||||||
{
|
{
|
||||||
case CHAR_SPACE:
|
case CHAR_SPACE:
|
||||||
|
case CHAR_NBSP:
|
||||||
case CHAR_PROMPT_SCROLL:
|
case CHAR_PROMPT_SCROLL:
|
||||||
case CHAR_PROMPT_CLEAR:
|
case CHAR_PROMPT_CLEAR:
|
||||||
case CHAR_NEWLINE:
|
case CHAR_NEWLINE:
|
||||||
|
|