Add Turkish sprite font glyphs
BIN
resources/g2/font/g-breve-bold.png
Normal file
|
After Width: | Height: | Size: 176 B |
BIN
resources/g2/font/g-breve-small.png
Normal file
|
After Width: | Height: | Size: 176 B |
BIN
resources/g2/font/g-breve-tiny.png
Normal file
|
After Width: | Height: | Size: 180 B |
BIN
resources/g2/font/g-breve-uc-bold.png
Normal file
|
After Width: | Height: | Size: 196 B |
BIN
resources/g2/font/g-breve-uc-small.png
Normal file
|
After Width: | Height: | Size: 187 B |
BIN
resources/g2/font/g-breve-uc-tiny.png
Normal file
|
After Width: | Height: | Size: 174 B |
BIN
resources/g2/font/i-with-dot-uc-bold.png
Normal file
|
After Width: | Height: | Size: 164 B |
BIN
resources/g2/font/i-with-dot-uc-small.png
Normal file
|
After Width: | Height: | Size: 164 B |
BIN
resources/g2/font/i-with-dot-uc-tiny.png
Normal file
|
After Width: | Height: | Size: 164 B |
BIN
resources/g2/font/i-without-dot-bold.png
Normal file
|
After Width: | Height: | Size: 161 B |
BIN
resources/g2/font/i-without-dot-small.png
Normal file
|
After Width: | Height: | Size: 161 B |
BIN
resources/g2/font/i-without-dot-tiny.png
Normal file
|
After Width: | Height: | Size: 161 B |
BIN
resources/g2/font/s-cedilla-bold.png
Normal file
|
After Width: | Height: | Size: 185 B |
BIN
resources/g2/font/s-cedilla-small.png
Normal file
|
After Width: | Height: | Size: 181 B |
BIN
resources/g2/font/s-cedilla-tiny.png
Normal file
|
After Width: | Height: | Size: 176 B |
BIN
resources/g2/font/s-cedilla-uc-bold.png
Normal file
|
After Width: | Height: | Size: 187 B |
BIN
resources/g2/font/s-cedilla-uc-small.png
Normal file
|
After Width: | Height: | Size: 188 B |
BIN
resources/g2/font/s-cedilla-uc-tiny.png
Normal file
|
After Width: | Height: | Size: 173 B |
@@ -704,6 +704,42 @@
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/g-breve-uc-small.png",
|
||||
"y_offset": -1,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/i-with-dot-uc-small.png",
|
||||
"y_offset": -1,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/s-cedilla-uc-small.png",
|
||||
"y_offset": 0,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/g-breve-small.png",
|
||||
"y_offset": 0,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/i-without-dot-small.png",
|
||||
"y_offset": 2,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/s-cedilla-small.png",
|
||||
"y_offset": 2,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/ae-uc-bold.png",
|
||||
"y_offset": 0,
|
||||
@@ -969,6 +1005,42 @@
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/g-breve-uc-bold.png",
|
||||
"y_offset": -1,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/i-with-dot-uc-bold.png",
|
||||
"y_offset": -1,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/s-cedilla-uc-bold.png",
|
||||
"y_offset": 0,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/g-breve-bold.png",
|
||||
"y_offset": 0,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/i-without-dot-bold.png",
|
||||
"y_offset": 2,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/s-cedilla-bold.png",
|
||||
"y_offset": 2,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/ae-uc-tiny.png",
|
||||
"y_offset": 0,
|
||||
@@ -1241,5 +1313,41 @@
|
||||
"y_offset": 1,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/g-breve-uc-tiny.png",
|
||||
"y_offset": -1,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/i-with-dot-uc-tiny.png",
|
||||
"y_offset": -1,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/s-cedilla-uc-tiny.png",
|
||||
"y_offset": 0,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/g-breve-tiny.png",
|
||||
"y_offset": 0,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/i-without-dot-tiny.png",
|
||||
"y_offset": 2,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
},
|
||||
{
|
||||
"path": "font/s-cedilla-tiny.png",
|
||||
"y_offset": 1,
|
||||
"palette": "keep",
|
||||
"forceBmp": true
|
||||
}
|
||||
]
|
||||
|
||||
@@ -336,6 +336,20 @@ int32_t font_sprite_get_codepoint_offset(int32_t codepoint)
|
||||
case UNICODE_GUILDER_SIGN:
|
||||
return SPR_G2_GUILDER_SIGN - SPR_CHAR_START;
|
||||
|
||||
// Turkish
|
||||
case UNICODE_G_BREVE_UC:
|
||||
return SPR_G2_G_BREVE_UPPER - SPR_CHAR_START;
|
||||
case UNICODE_I_WITH_DOT_UC:
|
||||
return SPR_G2_I_WITH_DOT_UPPER - SPR_CHAR_START;
|
||||
case UNICODE_S_CEDILLA_UC:
|
||||
return SPR_G2_S_CEDILLA_UPPER - SPR_CHAR_START;
|
||||
case UNICODE_G_BREVE:
|
||||
return SPR_G2_G_BREVE_LOWER - SPR_CHAR_START;
|
||||
case UNICODE_I_WITHOUT_DOT:
|
||||
return SPR_G2_I_WITHOUT_DOT_LOWER - SPR_CHAR_START;
|
||||
case UNICODE_S_CEDILLA:
|
||||
return SPR_G2_S_CEDILLA_LOWER - SPR_CHAR_START;
|
||||
|
||||
// This is to catch capitalised versions of the guilder sign
|
||||
case UNICODE_F_WITH_HOOK_UC:
|
||||
return 'F' - 32;
|
||||
@@ -502,6 +516,13 @@ bool font_supports_string_sprite(const utf8* text)
|
||||
|
||||
case UNICODE_GUILDER_SIGN:
|
||||
|
||||
case UNICODE_G_BREVE_UC:
|
||||
case UNICODE_I_WITH_DOT_UC:
|
||||
case UNICODE_S_CEDILLA_UC:
|
||||
case UNICODE_G_BREVE:
|
||||
case UNICODE_I_WITHOUT_DOT:
|
||||
case UNICODE_S_CEDILLA:
|
||||
|
||||
supported = true;
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -265,6 +265,16 @@ enum UnicodeCyrillic
|
||||
|
||||
};
|
||||
|
||||
enum UnicodeTurkish
|
||||
{
|
||||
UNICODE_G_BREVE_UC = 286,
|
||||
UNICODE_G_BREVE = 287,
|
||||
UNICODE_I_WITH_DOT_UC = 304,
|
||||
UNICODE_I_WITHOUT_DOT = 305,
|
||||
UNICODE_S_CEDILLA_UC = 350,
|
||||
UNICODE_S_CEDILLA = 351,
|
||||
};
|
||||
|
||||
enum UnicodeDingbats
|
||||
{
|
||||
UNICODE_DINGBATS_PLUS = 0x2795,
|
||||
|
||||
@@ -898,7 +898,14 @@ enum
|
||||
|
||||
SPR_G2_GUILDER_SIGN = SPR_G2_CHAR_BEGIN + 50,
|
||||
|
||||
SPR_G2_CHAR_END = SPR_G2_GUILDER_SIGN,
|
||||
SPR_G2_G_BREVE_UPPER = SPR_G2_CHAR_BEGIN + 51,
|
||||
SPR_G2_I_WITH_DOT_UPPER = SPR_G2_CHAR_BEGIN + 52,
|
||||
SPR_G2_S_CEDILLA_UPPER = SPR_G2_CHAR_BEGIN + 53,
|
||||
SPR_G2_G_BREVE_LOWER = SPR_G2_CHAR_BEGIN + 54,
|
||||
SPR_G2_I_WITHOUT_DOT_LOWER = SPR_G2_CHAR_BEGIN + 55,
|
||||
SPR_G2_S_CEDILLA_LOWER = SPR_G2_CHAR_BEGIN + 56,
|
||||
|
||||
SPR_G2_CHAR_END = SPR_G2_S_CEDILLA_LOWER,
|
||||
SPR_G2_GLYPH_COUNT = (SPR_G2_CHAR_END - SPR_G2_CHAR_BEGIN) + 1,
|
||||
|
||||
// 0x60000, chosen because it's a round hex number
|
||||
|
||||