aboutsummaryrefslogtreecommitdiff
path: root/win32/winfont.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/winfont.c')
-rw-r--r--win32/winfont.c7
1 files changed, 6 insertions, 1 deletions
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: