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:

Some files were not shown because too many files have changed in this diff Show More