1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 19:13:07 +01:00

Add Turkish sprite font glyphs

This commit is contained in:
Michael Steenbeek
2018-07-24 13:54:19 +02:00
parent 00a8f41341
commit e6472eec00
22 changed files with 147 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 B

View File

@@ -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
}
]

View File

@@ -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:

View File

@@ -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,

View File

@@ -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