From: Lars Ingebrigtsen <larsi@gnus.org>
To: ndame <emacsuser@freemail.hu>
Cc: 40508@debbugs.gnu.org
Subject: bug#40508: 26.2; shr does not make h1 tag larger if variable-pitch font is set
Date: Wed, 29 Jul 2020 09:49:44 +0200 [thread overview]
Message-ID: <87eeou221z.fsf@gnus.org> (raw)
In-Reply-To: <87zh7ymd81.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 17 Jul 2020 16:24:14 +0200")
Lars Ingebrigtsen <larsi@gnus.org> writes:
>> This is because variable-pitch is listed first in the face setting and
>> if it is set with size then it overrides the settings coming later:
>>
>> (defun shr-tag-h1 (dom)
>> (shr-heading dom (if shr-use-fonts
>> '(variable-pitch (:height 1.3 :weight bold))
>> 'bold)))
>
> Would reversing the order fix this problem? Untested patch below.
Well, no, and the order isn't the problem at all -- it's that if you set
the font that way in a face, it doesn't really matter what else you add
to the spec afterwards, as far as I can see.
If what you were trying to achieve was to make the face bigger, then you
can increase the size by (for instance) 20% with this:
(set-face-attribute 'variable-pitch nil :height 120)
So this isn't an eww bug, and I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
prev parent reply other threads:[~2020-07-29 7:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-08 14:37 bug#40508: 26.2; shr does not make h1 tag larger if variable-pitch font is set ndame
2020-07-17 14:24 ` Lars Ingebrigtsen
2020-07-29 7:49 ` Lars Ingebrigtsen [this message]
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=87eeou221z.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=40508@debbugs.gnu.org \
--cc=emacsuser@freemail.hu \
/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.