all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: myglc2 <myglc2@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: make ps-print-buffer-with-faces all bold
Date: Sun, 24 Jul 2016 11:49:03 -0400	[thread overview]
Message-ID: <cu7h9bf6nps.fsf@gmail.com> (raw)
In-Reply-To: 86invvxk1v.fsf@student.uu.se

Emanuel Berg <embe8573@student.uu.se> writes:

> myglc2 wrote:
>
>> I alway want emacs printout in color but find
>> the 'normal' faces frustratingly unreadable,
>> especially in low contrast colors. So... Here
>> is how to make everything bold in
>> ps-print-buffer-with-faces, etc.
>>
>> ;; 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)
>
> Cool, but perhaps you should change the "low
> contrast colors" instead?

To print I use a light theme and I want color to match the screen.  Dark
themes are generally unreadable printed this way. Something clever needs
to be done with the color if you want to print dark themes.

> Or do they look good on the screen, only not so when printed?

On my printer normal fonts are ~ unreadable.

> In what context should one use the code? I.e.,
> do you run it once or every time you print?

emacs init file.

> And: I don't think you need `function' before
> `lambda'.

elisp noobie ;-)

> 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.




  reply	other threads:[~2016-07-24 15:49 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 [this message]
     [not found]   ` <mailman.1968.1469375478.26859.help-gnu-emacs@gnu.org>
2016-07-24 20:42     ` Emanuel Berg
2016-07-25 15:08       ` myglc2
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=cu7h9bf6nps.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.