All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Zheng <andy.zheng@thizlinux.org>
To: grub-devel@gnu.org
Subject: About grub-1.91's terminal  vesafb .(CJK characters)
Date: Sun, 27 Nov 2005 09:27:33 +0800	[thread overview]
Message-ID: <1133054853.2501.2.camel@localhost.localdomain> (raw)

[-- Attachment #1: Type: text/plain, Size: 412 bytes --]

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

[-- Attachment #2: grub-1.91-vesafb-write-char-fullwidth.patch --]
[-- Type: text/x-patch, Size: 360 bytes --]

--- 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;
 	    }

             reply	other threads:[~2005-11-28  1:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-27  1:27 Andy Zheng [this message]
2005-11-28 13:04 ` About grub-1.91's terminal vesafb .(CJK characters) Vesa Jääskeläinen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1133054853.2501.2.camel@localhost.localdomain \
    --to=andy.zheng@thizlinux.org \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.