aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/vt/vt_font.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/vt/vt_font.c')
-rw-r--r--sys/dev/vt/vt_font.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/dev/vt/vt_font.c b/sys/dev/vt/vt_font.c
index eebe74066e69..50bcfe4e4994 100644
--- a/sys/dev/vt/vt_font.c
+++ b/sys/dev/vt/vt_font.c
@@ -87,7 +87,15 @@ vtfont_lookup(const struct vt_font *vf, term_char_t c)
uint16_t dst;
size_t stride;
+ /*
+ * No support for printing right hand sides for CJK fullwidth
+ * characters. Simply print a space and assume that the left
+ * hand side describes the entire character.
+ */
src = TCHAR_CHARACTER(c);
+ if (TCHAR_FORMAT(c) & TF_CJK_RIGHT)
+ src = ' ';
+
if (TCHAR_FORMAT(c) & TF_BOLD) {
dst = vtfont_bisearch(vf->vf_bold, vf->vf_bold_length, src);
if (dst != 0)