all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Andy Stewart'" <lazycat.manatee@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: RE: How to draw pixel ?
Date: Wed, 11 Feb 2009 09:03:57 -0800	[thread overview]
Message-ID: <001c01c98c6a$c7d532f0$c2b22382@us.oracle.com> (raw)
In-Reply-To: <878wocoqvn.fsf@debian.domain>

> >> function to draw pixel vertically line in emacs buffer
> >
> > I don't have a direct answer to your question, but you 
> > might also take a look at the code in vline.el. It draws
> > a vertical line using character composition with
> > the character ?|.
> > http://www.emacswiki.org/emacs/vline.el
>
> I know vline.el.
> But this overlay have display problem with multi-byte 
> language (such as Chinese), when Chinese character's width
> is not *two times* of English character's width.
> 
> I have attached screenshot for describe this problem.
> Then you will see the problem.

I probably can't help with this - I'm no expert on multi-byte stuff, character
composition, or use of graphics with Emacs.

But make sure of one thing: did you first set option `vline-style' to `compose'?
If it is not `compose', then a face is simply applied to the existing character.
If it is `compose', then the existing character is composed with character ?|.
The latter effect is of drawing a thin vertical line through the character.

Your screenshot looks like what one gets when the option has value `face'
instead. (But maybe that's just a coincidence, and the appearance is due here to
multi-byte characters.)





      parent reply	other threads:[~2009-02-11 17:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-11 16:16 How to draw pixel ? Andy Stewart
2009-02-11 16:43 ` Drew Adams
2009-02-11 16:59   ` Andy Stewart
     [not found]   ` <878wocoqvn.fsf@debian.domain>
2009-02-11 17:03     ` Drew Adams [this message]

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='001c01c98c6a$c7d532f0$c2b22382@us.oracle.com' \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=lazycat.manatee@gmail.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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.