Skip to content

Commit

Permalink
[vt] add cjk font that has 65536 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
microcai committed Apr 29, 2013
1 parent bc8615d commit 5059f6a
Show file tree
Hide file tree
Showing 6 changed files with 139,821 additions and 1 deletion.
7 changes: 7 additions & 0 deletions drivers/video/console/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,13 @@ config FONT_10x18
big letters. It fits between the sun 12x22 and the normal 8x16 font.
If other fonts are too big or too small for you, say Y, otherwise say N.

config FONT_16x16_CJK
bool "console 16x16 CJK font ( cover BMP )" if FONTS
depends on FRAMEBUFFER_CONSOLE
help
This is a high resolution console font that covers UNICODE bmp,
mostly is CJK font. If you want full UNICODE support on the VT console, say Y.

config FONT_AUTOSELECT
def_bool y
depends on FRAMEBUFFER_CONSOLE || SGI_NEWPORT_CONSOLE || STI_CONSOLE || USB_SISUSBVGA_CON
Expand Down
1 change: 1 addition & 0 deletions drivers/video/console/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ font-objs-$(CONFIG_FONT_10x18) += font_10x18.o
font-objs-$(CONFIG_FONT_PEARL_8x8) += font_pearl_8x8.o
font-objs-$(CONFIG_FONT_ACORN_8x8) += font_acorn_8x8.o
font-objs-$(CONFIG_FONT_MINI_4x6) += font_mini_4x6.o
font-objs-$(CONFIG_FONT_16x16_CJK) += font_16x16_cjk.o

font-objs += $(font-objs-y)

Expand Down
24 changes: 24 additions & 0 deletions drivers/video/console/font_16x16_cjk.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*************************************************/
/* */
/* Font file modified from */
/* http://blog.chinaunix.net/u/13265/showart.php?id=1008020 */
/* microcaicai@gmail modifiy it to use in-kernel*/
/* font solution */
/* */
/*************************************************/

#include <linux/font.h>

static const unsigned char fontdata_16x16[] = {
#include "font_cjk.h"
};

const struct font_desc font_16x16_cjk = {
.idx = FONT_16x16_CJK_IDX,
.name = "VGA_CJK",
.width = 8, // have to do this to make curser appear 8dots length
.height = 16,
.data = fontdata_16x16,
.pref = 10, // make it big enough to be selected
.charcount = 65535,
};
Loading

0 comments on commit 5059f6a

Please sign in to comment.