bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#40508: 26.2; shr does not make h1 tag larger if variable-pitch font


From: Lars Ingebrigtsen
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
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]