Re: Fixed Aquamacs printing bug

47 views
Skip to first unread message

Nathaniel Cunningham

unread,
Dec 11, 2017, 4:55:20 AM12/11/17
to aquamac...@googlegroups.com
The fix causes problems for me: when running “without customizations”, my printed output for elisp-mode ends up with multiple font sizes (while in Aquamacs everything is displayed in one size, and describe-face reveals no font size specifications for the the affected faces or those they inherit from). Example PDF page attached (note even ;; at beginning of lines are different size from comments that follow in the same lines.)

I ran htmlize-buffer on an elisp buffer. I find that all face styles in the CSS listing at the top of the html produced have
font-size: 99%;
except
.comment-delimiter {
        /* font-lock-comment-delimiter-face */

      .doc {
        /* font-lock-doc-face */

and

      .warning {
        /* font-lock-warning-face */

which all have
font-size: 119%;

It’s strange that a face like font-lock-comment-delimiter-face, whose “describe-face” details are all “unspecified” except that it inherits from font-lock-comment-face, should end up with different htmlize’d font size settings in CSS.

-- Nathaniel


---------- Forwarded message ----------
From: David Reitter <david....@gmail.com>
Date: Sat, Dec 9, 2017 at 6:24 AM
Subject: [OS X Emacs] Fixed Aquamacs printing bug
To: Emacs on Mac OS X Mailing List <macosx...@email.esm.psu.edu>


I have just fixed the printing problem where printing did not work because Aquamacs used a ridiculous font size, unless you were zoomed in or out (with Command-+/-).  This is in git, will be in nightly builds soon, and in the next release.  Feel free to test and provide feedback.


--
http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
http://aquamacs.org/donate -- Could we help you? Return the favor and support the Aquamacs Project!

_____________________________________________________________
MacOSX-Emacs mailing list
MacOSX...@email.esm.psu.edu
https://email.esm.psu.edu/mailman/listinfo/macosx-emacs
List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx

elisp_printUpdate_example.pdf

David Reitter

unread,
Jan 28, 2018, 6:13:19 PM1/28/18
to aquamacs-devel, nathaniel....@gmail.com
Hi Nathaniel,

On Dec 11, 2017, at 4:55 AM, Nathaniel Cunningham <nathaniel....@gmail.com> wrote:
>
> The fix causes problems for me: when running “without customizations”, my printed output for elisp-mode ends up with multiple font sizes (while in Aquamacs everything is displayed in one size, and describe-face reveals no font size specifications for the the affected faces or those they inherit from). Example PDF page attached (note even ;; at beginning of lines are different size from comments that follow in the same lines.)
>
> I ran htmlize-buffer on an elisp buffer. I find that all face styles in the CSS listing at the top of the html produced have
> font-size: 99%;
> except
> .comment-delimiter {
> /* font-lock-comment-delimiter-face */


There were multiple issues at play here — doubling up of inheritance and face size scaling, and then a similar thing at the HTML level where nested tags with percentages for their font size specifications lead to unexpected results.

It should be fixed now, so please give it a shot and let me know if anything else is amiss.

I think some of these are bugs in the htmlize package, so I’m going to have to see if I can get this fixed in the original package, too.

Nathaniel Cunningham

unread,
Jan 29, 2018, 2:13:29 PM1/29/18
to aquamac...@googlegroups.com
Thanks David, it's working well now!
-- Nathaniel


Reply all
Reply to author
Forward
0 new messages