* How to draw pixel ?
@ 2009-02-11 16:16 Andy Stewart
2009-02-11 16:43 ` Drew Adams
0 siblings, 1 reply; 4+ messages in thread
From: Andy Stewart @ 2009-02-11 16:16 UTC (permalink / raw)
To: help-gnu-emacs
Hi all,
Have a exist function or package to draw pixel?
I need draw pixel vertically line in emacs buffer.
Thanks!
-- Andy
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: How to draw pixel ?
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>
0 siblings, 2 replies; 4+ messages in thread
From: Drew Adams @ 2009-02-11 16:43 UTC (permalink / raw)
To: 'Andy Stewart', help-gnu-emacs
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to draw pixel ?
2009-02-11 16:43 ` Drew Adams
@ 2009-02-11 16:59 ` Andy Stewart
[not found] ` <878wocoqvn.fsf@debian.domain>
1 sibling, 0 replies; 4+ messages in thread
From: Andy Stewart @ 2009-02-11 16:59 UTC (permalink / raw)
To: Drew Adams; +Cc: help-gnu-emacs
Hi Drew,
"Drew Adams" <drew.adams@oracle.com> writes:
>> 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 uploae screenshot for describe this problem.
Screenshot at http://www.emacswiki.org/emacs/VlineProblemWithChinese
Then you will see the problem.
Regards,
-- Andy
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: How to draw pixel ?
[not found] ` <878wocoqvn.fsf@debian.domain>
@ 2009-02-11 17:03 ` Drew Adams
0 siblings, 0 replies; 4+ messages in thread
From: Drew Adams @ 2009-02-11 17:03 UTC (permalink / raw)
To: 'Andy Stewart'; +Cc: help-gnu-emacs
> >> 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.)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-02-11 17:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).