From: myglc2 <myglc2@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: make ps-print-buffer-with-faces all bold
Date: Mon, 25 Jul 2016 11:08:06 -0400 [thread overview]
Message-ID: <cu7eg6h69ih.fsf@gmail.com> (raw)
In-Reply-To: 86shuyhio1.fsf@student.uu.se
Emanuel Berg <embe8573@student.uu.se> writes:
> myglc2 wrote:
>
>>> Last, aren't there other attributes than
>>> foreground and background? Perhaps you can
>>> find a function that returns the whole
>>> thing, and then just set it to bold?
>>
>> The ps-print.el public interface requires
>> this custom structure.
>
> OK, because if you use `describe-function' you
> get a whole lot of stuff!
>
> But perhaps PostScript in this case (?) only
> uses what you mention?
Restating the function under discussion for handy reference ...
;; ps-print in all bold fonts
(ps-extend-face-list
(mapcar (function (lambda (x) (list x
(face-attribute x :foreground)
(face-attribute x :background)
'bold)))
(face-list)) 'MERGE)
OK I think I missed your earlier point. Yes, you can specify additional
attributes, to the extent that ps-print supports them, using the
'ps-extend-face-list' interface.
The reason I specify the colors is that with nil or t for foreground and
background, ps-print prints in B&W. So this function re-states the
colors that ps-print already knows about in order to bold the faces w/o
clobbering the color. HTH - George
next prev parent reply other threads:[~2016-07-25 15:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1954.1469320813.26859.help-gnu-emacs@gnu.org>
2016-07-24 13:06 ` make ps-print-buffer-with-faces all bold Emanuel Berg
2016-07-24 15:49 ` myglc2
[not found] ` <mailman.1968.1469375478.26859.help-gnu-emacs@gnu.org>
2016-07-24 20:42 ` Emanuel Berg
2016-07-25 15:08 ` myglc2 [this message]
2016-07-23 21:09 myglc2
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=cu7eg6h69ih.fsf@gmail.com \
--to=myglc2@gmail.com \
--cc=help-gnu-emacs@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.
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.