separated japanese glyphs and images

This commit is contained in:
Mike 2024-12-28 21:21:55 -06:00
parent 18e95548a0
commit c3d0fd40e3
10 changed files with 2733 additions and 735 deletions

View file

@ -3,6 +3,14 @@
#include "game/ingame_menu.h" #include "game/ingame_menu.h"
#include "make_const_nonconst.h" #include "make_const_nonconst.h"
ALIGNED8 const u8 texture_font_jp[] = {
#include "textures/custom_font/custom_font_jp.rgba32.inc.c"
};
ALIGNED8 const u8 texture_font_jp_aliased[] = {
#include "textures/custom_font/custom_font_jp_aliased.rgba32.inc.c"
};
ALIGNED8 const u8 texture_font_normal[] = { ALIGNED8 const u8 texture_font_normal[] = {
#include "textures/custom_font/custom_font_normal.rgba32.inc.c" #include "textures/custom_font/custom_font_normal.rgba32.inc.c"
}; };

View file

@ -1546,6 +1546,8 @@ extern ALIGNED8 const Texture texture_font_hud_recolor[];
extern ALIGNED8 const Texture texture_font_special[]; extern ALIGNED8 const Texture texture_font_special[];
extern ALIGNED8 const Texture texture_selectionbox_back_icon[]; extern ALIGNED8 const Texture texture_selectionbox_back_icon[];
extern ALIGNED8 const Texture texture_selectionbox_forward_icon[]; extern ALIGNED8 const Texture texture_selectionbox_forward_icon[];
extern ALIGNED8 const Texture texture_font_jp[];
extern ALIGNED8 const Texture texture_font_jp_aliased[];
extern ALIGNED8 const Texture texture_coopdx_logo[]; extern ALIGNED8 const Texture texture_coopdx_logo[];
extern ALIGNED8 const Texture pss_seg7_texture_07000000[]; extern ALIGNED8 const Texture pss_seg7_texture_07000000[];
extern ALIGNED8 const Texture pss_seg7_texture_07000800[]; extern ALIGNED8 const Texture pss_seg7_texture_07000800[];

View file

@ -1138,13 +1138,16 @@ static const struct BuiltinTexInfo sDynosBuiltinTexs[] = {
define_builtin_tex(waluigi_texture_eyes_up, "actors/waluigi/custom_waluigi_eyes_up_unused.rgba16.png", 64, 32, 16), define_builtin_tex(waluigi_texture_eyes_up, "actors/waluigi/custom_waluigi_eyes_up_unused.rgba16.png", 64, 32, 16),
define_builtin_tex(waluigi_texture_eyes_down, "actors/waluigi/custom_waluigi_eyes_down_unused.rgba16.png", 64, 32, 16), define_builtin_tex(waluigi_texture_eyes_down, "actors/waluigi/custom_waluigi_eyes_down_unused.rgba16.png", 64, 32, 16),
define_builtin_tex(waluigi_texture_eyes_dead, "actors/waluigi/custom_waluigi_eyes_dead.rgba16.png", 64, 32, 16), define_builtin_tex(waluigi_texture_eyes_dead, "actors/waluigi/custom_waluigi_eyes_dead.rgba16.png", 64, 32, 16),
// DJUI // DJUI
define_builtin_tex(texture_font_normal, "textures/custom_font/custom_font_normal.rgba32.png", 256, 512, 32), define_builtin_tex(texture_font_normal, "textures/custom_font/custom_font_normal.rgba32.png", 256, 128, 32),
define_builtin_tex(texture_font_aliased, "textures/custom_font/custom_font_aliased.rgba32.png", 512, 1024, 32), define_builtin_tex(texture_font_aliased, "textures/custom_font/custom_font_aliased.rgba32.png", 512, 256, 32),
define_builtin_tex(texture_font_title, "textures/custom_font/custom_font_title.rgba32.png", 1024, 512, 32), define_builtin_tex(texture_font_title, "textures/custom_font/custom_font_title.rgba32.png", 1024, 512, 32),
define_builtin_tex(texture_font_hud, "textures/custom_font/custom_font_normal.rgba32.png", 512, 512, 32), define_builtin_tex(texture_font_hud, "textures/custom_font/custom_font_normal.rgba32.png", 512, 512, 32),
define_builtin_tex(texture_font_hud_recolor, "textures/custom_font/custom_font_aliased.rgba32.png", 512, 512, 32), define_builtin_tex(texture_font_hud_recolor, "textures/custom_font/custom_font_aliased.rgba32.png", 512, 512, 32),
define_builtin_tex(texture_font_special, "textures/custom_font/custom_font_special.rgba32.png", 512, 512, 32), define_builtin_tex(texture_font_special, "textures/custom_font/custom_font_special.rgba32.png", 512, 512, 32),
define_builtin_tex(texture_font_jp, "textures/custom_font/custom_font_jp.rgba32.png", 512, 1024, 32),
define_builtin_tex(texture_font_jp_aliased, "textures/custom_font/custom_font_jp_aliased.rgba32.png", 1024, 2048, 32),
// Logo // Logo
define_builtin_tex(texture_selectionbox_back_icon, "textures/segment2/custom_selectionbox_back_icon.rgba16.png", 16, 16, 16), define_builtin_tex(texture_selectionbox_back_icon, "textures/segment2/custom_selectionbox_back_icon.rgba16.png", 16, 16, 16),

View file

@ -12,11 +12,20 @@ static void djui_font_normal_render_char(char* c) {
if (*c == ' ') { return; } if (*c == ' ') { return; }
u32 index = djui_unicode_get_sprite_index(c); u32 index = djui_unicode_get_sprite_index(c);
u32 tx = index % 32;
u32 ty = index / 32;
extern ALIGNED8 const u8 texture_font_normal[]; if (index & 0x010000) {
djui_gfx_render_texture_tile(texture_font_normal, 256, 512, 32, tx * 8, ty * 16, 8, 16, false, true); index &= ~0x010000;
u32 tx = index % 64;
u32 ty = index / 64;
extern ALIGNED8 const u8 texture_font_jp[];
djui_gfx_render_texture_tile(texture_font_jp, 512, 1024, 32, tx * 8, ty * 16, 8, 16, false);
}
else {
u32 tx = index % 32;
u32 ty = index / 32;
extern ALIGNED8 const u8 texture_font_normal[];
djui_gfx_render_texture_tile(texture_font_normal, 256, 128, 32, tx * 8, ty * 16, 8, 16, false);
}
} }
static f32 djui_font_normal_char_width(char* c) { static f32 djui_font_normal_char_width(char* c) {
@ -143,11 +152,20 @@ static void djui_font_aliased_render_char(char* c) {
if (*c == ' ') { return; } if (*c == ' ') { return; }
u32 index = djui_unicode_get_sprite_index(c); u32 index = djui_unicode_get_sprite_index(c);
u32 tx = index % 32;
u32 ty = index / 32;
extern ALIGNED8 const u8 texture_font_aliased[]; if (index & 0x010000) {
djui_gfx_render_texture_tile(texture_font_aliased, 512, 1024, 32, tx * 16, ty * 32, 16, 32, false, true); index &= ~0x010000;
u32 tx = index % 64;
u32 ty = index / 64;
extern ALIGNED8 const u8 texture_font_jp_aliased[];
djui_gfx_render_texture_tile(texture_font_jp_aliased, 1024, 2048, 32, tx * 16, ty * 32, 16, 32, false);
}
else {
u32 tx = index % 32;
u32 ty = index / 32;
extern ALIGNED8 const u8 texture_font_aliased[];
djui_gfx_render_texture_tile(texture_font_aliased, 512, 256, 32, tx * 16, ty * 32, 16, 32, false);
}
} }
static f32 djui_font_aliased_char_width(char* c) { static f32 djui_font_aliased_char_width(char* c) {

View file

@ -176,731 +176,10 @@ struct SmCodeGlyph sSmCodeGlyphs[] = {
{ "ї", 'l', 0, 0 }, { "ї", 'l', 0, 0 },
{ "Ґ", 'R', 0, 0 }, { "Ґ", 'R', 0, 0 },
{ "ґ", 'R', 0, 0 }, { "ґ", 'R', 0, 0 },
};
{ "", 8, 18, 0 },
{ "", 8, 18, 0 }, struct SmCodeGlyph sSmCodeGlyphs_JP[] = {
{ "", 8, 18, 0 }, #include "jp_glyphs.h"
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "使", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "姿", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "西", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "調", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "退", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
{ "", 8, 18, 0 },
}; };
struct SmCodeGlyph sSmCodeDuplicateGlyphs[] = { struct SmCodeGlyph sSmCodeDuplicateGlyphs[] = {
@ -965,6 +244,18 @@ void djui_unicode_init(void) {
assert(key > 127); assert(key > 127);
hmap_put(sCharMap, key, glyph); hmap_put(sCharMap, key, glyph);
} }
//add japanese glyphs
size_t jpCount = sizeof(sSmCodeGlyphs_JP) / sizeof(sSmCodeGlyphs_JP[0]);
for (size_t i = 0; i < jpCount; i++) {
struct SmCodeGlyph* glyph = &sSmCodeGlyphs_JP[i];
glyph->spriteIndex = 0x010000 + i;
u64 key = convert_unicode_char_to_u64(glyph->unicode);
s32 bytes = count_bytes_for_char(glyph->unicode);
assert(bytes >= 2 && bytes <= 4);
assert(key > 127);
hmap_put(sCharMap, key, glyph);
}
// add duplicate glyphs // add duplicate glyphs
size_t dupCount = sizeof(sSmCodeDuplicateGlyphs) / sizeof(sSmCodeDuplicateGlyphs[0]); size_t dupCount = sizeof(sSmCodeDuplicateGlyphs) / sizeof(sSmCodeDuplicateGlyphs[0]);

2676
src/pc/djui/jp_glyphs.h Normal file

File diff suppressed because it is too large Load diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB