From dc476f36eb1847a9f1e6a8adcfdd83fc3a0e87ef Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Wed, 16 Aug 2017 23:55:51 +0900 Subject: fixed doublebyte-halfwidth katakana, added default shinonome font to gtk --- fmdsp/font.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fmdsp/font.h') diff --git a/fmdsp/font.h b/fmdsp/font.h index ec39ed3..855a87d 100644 --- a/fmdsp/font.h +++ b/fmdsp/font.h @@ -15,7 +15,8 @@ static inline bool sjis_is_mb_start(uint8_t c) { } static inline bool jis_is_halfwidth(uint16_t jis) { - return (jis>>8) == 0x29; + uint8_t row = jis >> 8; + return row == 0x29 || row == 0x2a; } static inline uint16_t sjis2jis(uint8_t sjis_1st, uint8_t sjis_2nd) { -- cgit v1.2.3