mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 06:23:04 +01:00
Fix #7616: Use unicode dingbats for +/- buttons in CJK languages.
This commit is contained in:
@@ -112,6 +112,9 @@ sint32 font_sprite_get_codepoint_offset(sint32 codepoint)
|
||||
case UNICODE_Z_DOT: return RCT2_Z_DOT - 32;
|
||||
case UNICODE_Z_ACUTE: return RCT2_Z_ACUTE - 32;
|
||||
|
||||
case UNICODE_DINGBATS_PLUS: return 11;
|
||||
case UNICODE_DINGBATS_MINUS: return 13;
|
||||
|
||||
default:
|
||||
if (codepoint < 32 || codepoint >= 256) codepoint = '?';
|
||||
return codepoint - 32;
|
||||
|
||||
@@ -137,6 +137,8 @@ bool utf8_should_use_sprite_for_codepoint(sint32 codepoint)
|
||||
case FORMAT_LEFT:
|
||||
case FORMAT_OPENQUOTES:
|
||||
case FORMAT_ENDQUOTES:
|
||||
case UNICODE_DINGBATS_PLUS:
|
||||
case UNICODE_DINGBATS_MINUS:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
|
||||
@@ -181,4 +181,10 @@ enum UnicodePolish
|
||||
UNICODE_Z_ACUTE = 378,
|
||||
};
|
||||
|
||||
enum UnicodeDingbats
|
||||
{
|
||||
UNICODE_DINGBATS_PLUS = 0x2795,
|
||||
UNICODE_DINGBATS_MINUS = 0x2796,
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user