diff options
author | Takamichi Horikawa <takamichiho@gmail.com> | 2017-08-16 23:55:51 +0900 |
---|---|---|
committer | Takamichi Horikawa <takamichiho@gmail.com> | 2017-08-16 23:55:51 +0900 |
commit | dc476f36eb1847a9f1e6a8adcfdd83fc3a0e87ef (patch) | |
tree | d3d0edff4f504bdd9c38f82b315891decc8ed219 /fmdsp/font.h | |
parent | df77159e29d62a805f29597d4ebb5b441af416c8 (diff) |
fixed doublebyte-halfwidth katakana, added default shinonome font to gtk
Diffstat (limited to 'fmdsp/font.h')
-rw-r--r-- | fmdsp/font.h | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |