Add D and E with caron
This also adds the Unicode codepoints for the remaining Czech letters.
BIN
resources/g2/font/latin/d-caron-bold.png
Normal file
|
After Width: | Height: | Size: 185 B |
BIN
resources/g2/font/latin/d-caron-small.png
Normal file
|
After Width: | Height: | Size: 180 B |
BIN
resources/g2/font/latin/d-caron-tiny.png
Normal file
|
After Width: | Height: | Size: 177 B |
BIN
resources/g2/font/latin/d-caron-uc-bold.png
Normal file
|
After Width: | Height: | Size: 193 B |
BIN
resources/g2/font/latin/d-caron-uc-small.png
Normal file
|
After Width: | Height: | Size: 178 B |
BIN
resources/g2/font/latin/d-caron-uc-tiny.png
Normal file
|
After Width: | Height: | Size: 172 B |
BIN
resources/g2/font/latin/e-caron-bold.png
Normal file
|
After Width: | Height: | Size: 179 B |
BIN
resources/g2/font/latin/e-caron-small.png
Normal file
|
After Width: | Height: | Size: 178 B |
BIN
resources/g2/font/latin/e-caron-tiny.png
Normal file
|
After Width: | Height: | Size: 172 B |
BIN
resources/g2/font/latin/e-caron-uc-bold.png
Normal file
|
After Width: | Height: | Size: 180 B |
BIN
resources/g2/font/latin/e-caron-uc-small.png
Normal file
|
After Width: | Height: | Size: 182 B |
BIN
resources/g2/font/latin/e-caron-uc-tiny.png
Normal file
|
After Width: | Height: | Size: 170 B |
@@ -818,6 +818,30 @@
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/latin/d-caron-uc-small.png",
|
||||
"y_offset": 0,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/latin/d-caron-small.png",
|
||||
"y_offset": 0,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/latin/e-caron-uc-small.png",
|
||||
"y_offset": 0,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/latin/e-caron-small.png",
|
||||
"y_offset": 0,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/latin/ae-uc-bold.png",
|
||||
"y_offset": 0,
|
||||
@@ -1197,6 +1221,30 @@
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/latin/d-caron-uc-bold.png",
|
||||
"y_offset": -1,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/latin/d-caron-bold.png",
|
||||
"y_offset": 0,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/latin/e-caron-uc-bold.png",
|
||||
"y_offset": -1,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/latin/e-caron-bold.png",
|
||||
"y_offset": 0,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/latin/ae-uc-tiny.png",
|
||||
"y_offset": 0,
|
||||
@@ -1583,5 +1631,29 @@
|
||||
"y_offset": 0,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/latin/d-caron-uc-tiny.png",
|
||||
"y_offset": -1,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/latin/d-caron-tiny.png",
|
||||
"y_offset": 0,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/latin/e-caron-uc-tiny.png",
|
||||
"y_offset": -1,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/latin/e-caron-tiny.png",
|
||||
"y_offset": -1,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
}
|
||||
]
|
||||
|
||||
@@ -43,8 +43,12 @@ static const std::map<char32_t, int32_t> codepointOffsetMap = {
|
||||
{ UnicodeChar::c_acute, CSChar::c_acute - CS_SPRITE_FONT_OFFSET },
|
||||
{ UnicodeChar::c_caron_uc, SPR_G2_C_CARON_UPPER - SPR_CHAR_START },
|
||||
{ UnicodeChar::c_caron, SPR_G2_C_CARON_LOWER - SPR_CHAR_START },
|
||||
{ UnicodeChar::d_caron_uc, SPR_G2_D_CARON_UPPER - SPR_CHAR_START },
|
||||
{ UnicodeChar::d_caron, SPR_G2_D_CARON_LOWER - SPR_CHAR_START },
|
||||
{ UnicodeChar::e_ogonek_uc, CSChar::e_ogonek_uc - CS_SPRITE_FONT_OFFSET },
|
||||
{ UnicodeChar::e_ogonek, CSChar::e_ogonek - CS_SPRITE_FONT_OFFSET },
|
||||
{ UnicodeChar::e_caron_uc, SPR_G2_E_CARON_UPPER - SPR_CHAR_START },
|
||||
{ UnicodeChar::e_caron, SPR_G2_E_CARON_LOWER - SPR_CHAR_START },
|
||||
{ UnicodeChar::g_breve_uc, SPR_G2_G_BREVE_UPPER - SPR_CHAR_START },
|
||||
{ UnicodeChar::g_breve, SPR_G2_G_BREVE_LOWER - SPR_CHAR_START },
|
||||
{ UnicodeChar::i_with_dot_uc, SPR_G2_I_WITH_DOT_UPPER - SPR_CHAR_START },
|
||||
|
||||
@@ -158,8 +158,12 @@ namespace UnicodeChar
|
||||
constexpr char32_t c_acute = 0x107;
|
||||
constexpr char32_t c_caron_uc = 0x10C;
|
||||
constexpr char32_t c_caron = 0x10D;
|
||||
constexpr char32_t d_caron_uc = 0x10E;
|
||||
constexpr char32_t d_caron = 0x10F;
|
||||
constexpr char32_t e_ogonek_uc = 0x118;
|
||||
constexpr char32_t e_ogonek = 0x119;
|
||||
constexpr char32_t e_caron_uc = 0x11A;
|
||||
constexpr char32_t e_caron = 0x11B;
|
||||
constexpr char32_t g_breve_uc = 0x11E;
|
||||
constexpr char32_t g_breve = 0x11F;
|
||||
constexpr char32_t i_with_dot_uc = 0x130;
|
||||
@@ -168,18 +172,30 @@ namespace UnicodeChar
|
||||
constexpr char32_t l_stroke = 0x142;
|
||||
constexpr char32_t n_acute_uc = 0x143;
|
||||
constexpr char32_t n_acute = 0x144;
|
||||
constexpr char32_t n_caron_uc = 0x147;
|
||||
constexpr char32_t n_caron = 0x148;
|
||||
constexpr char32_t o_double_acute_uc = 0x150;
|
||||
constexpr char32_t o_double_acute = 0x151;
|
||||
constexpr char32_t r_caron_uc = 0x158;
|
||||
constexpr char32_t r_caron = 0x159;
|
||||
constexpr char32_t s_acute_uc = 0x15A;
|
||||
constexpr char32_t s_acute = 0x15B;
|
||||
constexpr char32_t s_cedilla_uc = 0x15E;
|
||||
constexpr char32_t s_cedilla = 0x15F;
|
||||
constexpr char32_t s_caron_uc = 0x160;
|
||||
constexpr char32_t s_caron = 0x161;
|
||||
constexpr char32_t t_caron_uc = 0x164;
|
||||
constexpr char32_t t_caron = 0x165;
|
||||
constexpr char32_t u_ring_uc = 0x16E;
|
||||
constexpr char32_t u_ring = 0x16F;
|
||||
constexpr char32_t u_double_acute_uc = 0x170;
|
||||
constexpr char32_t u_double_acute = 0x171;
|
||||
constexpr char32_t z_acute_uc = 0x179;
|
||||
constexpr char32_t z_acute = 0x17A;
|
||||
constexpr char32_t z_dot_uc = 0x17B;
|
||||
constexpr char32_t z_dot = 0x17C;
|
||||
constexpr char32_t z_caron_uc = 0x17D;
|
||||
constexpr char32_t z_caron = 0x17E;
|
||||
constexpr char32_t f_with_hook_uc = 0x191;
|
||||
constexpr char32_t s_comma_uc = 0x218;
|
||||
constexpr char32_t s_comma = 0x219;
|
||||
|
||||
@@ -924,7 +924,12 @@ enum
|
||||
SPR_G2_U_DOUBLE_ACUTE_UPPER = SPR_G2_CHAR_BEGIN + 68,
|
||||
SPR_G2_U_DOUBLE_ACUTE_LOWER = SPR_G2_CHAR_BEGIN + 69,
|
||||
|
||||
SPR_G2_CHAR_END = SPR_G2_U_DOUBLE_ACUTE_LOWER,
|
||||
SPR_G2_D_CARON_UPPER = SPR_G2_CHAR_BEGIN + 70,
|
||||
SPR_G2_D_CARON_LOWER = SPR_G2_CHAR_BEGIN + 71,
|
||||
SPR_G2_E_CARON_UPPER = SPR_G2_CHAR_BEGIN + 72,
|
||||
SPR_G2_E_CARON_LOWER = SPR_G2_CHAR_BEGIN + 73,
|
||||
|
||||
SPR_G2_CHAR_END = SPR_G2_E_CARON_LOWER,
|
||||
SPR_G2_GLYPH_COUNT = (SPR_G2_CHAR_END - SPR_G2_CHAR_BEGIN) + 1,
|
||||
|
||||
// 0x60000, chosen because it's a round hex number
|
||||
|
||||