From 943aece1739caab20af5e6d82f9159e107a2f908 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Sun, 12 Feb 2017 11:11:28 +0900 Subject: winfont: doublebyte halfwidth characters --- win32/winfont.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'win32') diff --git a/win32/winfont.c b/win32/winfont.c index fb98ccd..226f4df 100644 --- a/win32/winfont.c +++ b/win32/winfont.c @@ -73,7 +73,12 @@ static const void *winfont_get(const struct fmdsp_font *font, TextOut(fw->dc, 0, 0, text, 1); break; case FMDSP_FONT_JIS_LEFT: - text[0] = jis2uni(c); + if (c>>8 == 0x29) { + // doublebyte halfwidth + text[0] = jis2unih(c & 0xff); + } else { + text[0] = jis2uni(c); + } TextOut(fw->dc, 0, 0, text, 1); break; case FMDSP_FONT_JIS_RIGHT: -- cgit v1.2.3