]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Extend libteken to support CJK fullwidth characters.
authored <ed@FreeBSD.org>
Fri, 20 Dec 2013 21:31:50 +0000 (21:31 +0000)
committered <ed@FreeBSD.org>
Fri, 20 Dec 2013 21:31:50 +0000 (21:31 +0000)
commit4d1897863f30817d3e8beb6e3be1f1115402f8b5
tree6b12de7f6b54baecfd56db911a6a2b9c8852b2d2
parentae34685b8eb7435f5c01115fa64955dffffb03be
Extend libteken to support CJK fullwidth characters.

Introduce a new formatting bit (TF_CJK_RIGHT) that is set when putting a
cell that is the right part of a CJK fullwidth character. This will
allow drivers like vt(9) to support fullwidth characters properly.

emaste@ has a patch to extend vt(9)'s font handling to increase the
number of Unicode -> glyph maps from 2 ({normal,bold)} to 4
({normal,bold} x {left,right}). This will need to use this formatting
bit to determine whether to draw the left or right glyph.

Reviewed by: emaste
sys/dev/syscons/scterm-teken.c
sys/dev/vt/vt_font.c
sys/kern/subr_terminal.c
sys/sys/terminal.h
sys/teken/demo/teken_demo.c
sys/teken/teken.h
sys/teken/teken_subr.h