Hello,

I discovered that, in the current GRUB 2 (1.91 and CVS as of today), the
vesafb terminal cannot display fullwidth (16x16) CJK characters
properly.  (The vga terminal displays both halfwidth and fullwidth
characters properly.)

I finally got it to work after some tweaking.  Please see the attached
patch file.

Thanks!


Andy Zheng <andy.zheng_AT_thizlinux_DOT_org>
ThizLinux Software Institute, Beijing
--- grub-1.91~/term/i386/pc/vesafb.c	2005-11-25 15:22:36.000000000 +0800
+++ grub-1.91/term/i386/pc/vesafb.c	2005-11-25 15:28:36.000000000 +0800
@@ -316,7 +316,10 @@
 	{
 	  unsigned char color;
 
-	  if (bitmap[offset] & (1 << (8-i)))
+	  if (i == 8)
+	    offset++;
+
+	  if (bitmap[offset] & (1 << (7 - i % 8)))
 	    {
 	      color = p->fg_color;
 	    }
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to