From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: cyd@gnu.org, sdl.web@gmail.com, emacs-devel@gnu.org
Subject: Re: Does face support underline other than a straight line?
Date: Wed, 25 Jan 2012 18:26:25 +0900 [thread overview]
Message-ID: <871uqo3zge.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <E1Rpx2n-0007gD-U3@fencepost.gnu.org>
Eli Zaretskii writes:
> > If Emacs supports background pixmaps to attach to faces, then it
> > should be possible to create an appropriate pixmap on the fly.
>
> We have the :stipple attribute of faces; is that what you mean?
I don't know how that works; never used it. In X11, "stipple" means a
bitmap (mask), and I don't think that would cut it, you need to paint
the whole background. I wouldn't be surprised if in Emacs it just
means "background image", though.
In XEmacs you can specify a color or a pixmap as background (bitmaps
are promoted to pixmaps, but with -- until about a week ago -- less
than satisfactory results). So you could specify a background pixmap
(eg, as an XPM) as
+------+
| |
| |
| |
| |
| ** |
|* * |
| **|
+------+
and it will be tiled appropriately over the extent of the face, and
the text will be printed over that in the foreground color. Sort of
like poor man's image layers.
Of course you have to set the background color of the pixmap to the
background of the face, and you also have to get the height of the
pixmap in pixels exactly right, I suspect. The latter might be
difficult for some fonts, especially with sizes specified in printer's
units rather than pixels.
next prev parent reply other threads:[~2012-01-25 9:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-24 10:00 Does face support underline other than a straight line? Leo
2012-01-25 6:03 ` Chong Yidong
2012-01-25 6:46 ` Eli Zaretskii
2012-01-25 6:49 ` Stephen J. Turnbull
2012-01-25 7:13 ` Eli Zaretskii
2012-01-25 9:26 ` Stephen J. Turnbull [this message]
2012-01-25 17:32 ` Aurélien Aptel
2012-01-25 17:36 ` Aurélien Aptel
2012-01-25 20:05 ` Aurélien Aptel
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=871uqo3zge.fsf@uwakimon.sk.tsukuba.ac.jp \
--to=stephen@xemacs.org \
--cc=cyd@gnu.org \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=sdl.web@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.