26 Nov 2010 11:02
[PATCH 1/2] Kernel fbcon UNICODE font support
Microcai <microcai <at> fedoraproject.org>
2010-11-26 10:02:40 GMT
2010-11-26 10:02:40 GMT
Hi, I know there are most people speaking only English, and never meet non-ASCII characters on console. But, hey , what about others ? Then, some of you may come up with a idea than ,there is already fbterm than supports non-ASCII characters in user-space. But, what if you forgot to run fbterm ? And what about some program that must be run on native tty console ? Or I just want init script display fine Native Language? So, here is the solution: Making framebuffer console handle UNICODE font in kernel. The first thing I need to handle is that, currently there is no room for adding UNICODE font, only 8bit for characters, how can you do? Also , some characters are double-width. So the solution is make an backing store. 0xFE and 0xFF stands for character value store else where, and 0xFF means , left-half of the else where character, and 0xFE means right-half of the else where character. This is a basic solution, the best is that making vc->vc_screenbuf store full UNICODE/attribute value, But changing it may break some drivers, so , currently I won't try that way. The UNICODE font just too large to be included in e-mail, please follow http://minilab.tk/0002-add-cjk-font-that-has-65536-chars.patch to get that. This font is copyrighted by youbest <at> sina.com, also he is the original author of this patch. I don't have a chance to reach him. If there be any license issue, just re-generated from WenWuanYi(http://wenq.org/)(Continue reading)


RSS Feed