All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vesa Jääskeläinen" <chaac@nic.fi>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Problem with fonts in different width
Date: Sat, 03 Jan 2009 21:27:28 +0200	[thread overview]
Message-ID: <495FBC20.7000406@nic.fi> (raw)
In-Reply-To: <20090103100656.1cfa6d3c@gibibit.com>

Colin D Bennett wrote:
> This would be fairly simple to do.  The font would then effectively be
> a proportional-width font since the new font engine+gfxterm does not
> handle "bi-width" fonts in a character-cell environment.

Actually it does :)... In a way at least.

If you have lets say Hiragana glyphs which take 2 cells space will be
displayed and acted like taking two normal characters.

Basically the algorithm is:

// determine normal cell width by analyzing ASCII character dimensions
normal_cell_width = max_width(glyphs[32..127]);

glyph_chars = (glyph.width + normal_cell_width - 1) / normal_cell_width;




  reply	other threads:[~2009-01-03 19:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-03 17:53 Problem with fonts in different width Bean
2009-01-03 18:06 ` Colin D Bennett
2009-01-03 19:27   ` Vesa Jääskeläinen [this message]
2009-01-03 19:30 ` 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=495FBC20.7000406@nic.fi \
    --to=chaac@nic.fi \
    --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.