GNU bug report logs - #40508
26.2; shr does not make h1 tag larger if variable-pitch font is set

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: ndame <emacsuser@HIDDEN>; dated Wed, 8 Apr 2020 14:38:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 8 Apr 2020 14:37:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 08 10:37:49 2020
Received: from localhost ([127.0.0.1]:52787 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jMBpt-00060V-5F
	for submit <at> debbugs.gnu.org; Wed, 08 Apr 2020 10:37:49 -0400
Received: from lists.gnu.org ([209.51.188.17]:40477)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <emacsuser@HIDDEN>) id 1jMBpq-00060N-5r
 for submit <at> debbugs.gnu.org; Wed, 08 Apr 2020 10:37:46 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:52444)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <emacsuser@HIDDEN>) id 1jMBpp-0006un-4S
 for bug-gnu-emacs@HIDDEN; Wed, 08 Apr 2020 10:37:45 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: ****
X-Spam-Status: No, score=4.1 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_RP_RNBL,SPOOFED_FREEMAIL
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <emacsuser@HIDDEN>) id 1jMBpo-0007Rs-3N
 for bug-gnu-emacs@HIDDEN; Wed, 08 Apr 2020 10:37:44 -0400
Received: from fmfe36.onbox.hu ([46.107.16.241]:36393 helo=web-out.onbox.hu)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <emacsuser@HIDDEN>)
 id 1jMBpn-0007RM-Sd
 for bug-gnu-emacs@HIDDEN; Wed, 08 Apr 2020 10:37:44 -0400
X-fm-smtp-source: yes
Received: from localhost (localhost [84.236.72.86])
 by web-out.onbox.hu (Postfix) with SMTP id 48y6Lq6rmNz145d
 for <bug-gnu-emacs@HIDDEN>; Wed,  8 Apr 2020 16:37:35 +0200 (CEST)
From: ndame <emacsuser@HIDDEN>
Message-ID: <Aybc2w.v0VqA7FAu3c4.da1fsLniOLFnmF91lWO@HIDDEN>
Subject: 26.2;  shr does not make h1 tag larger if variable-pitch font is set
MIME-Version: 1.0
Content-Type: multipart/alternative; 
 boundary="----=_Part_106617_38439590.1586356330304"
To: "bug-gnu-emacs@HIDDEN" <bug-gnu-emacs@HIDDEN>
X-AccountId: 57978162
X-Originating-Ip: 84.236.72.86
Date: Wed,  8 Apr 2020 16:37:35 +0200 (CEST)
X-VR-SPAMSTATE: OK
X-VR-SPAMSCORE: 0
X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduhedrudejgdejkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdcuhfftgffgofetkffnnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffkufggtgfvihffsegrtdersgdttdejnecuhfhrohhmpehnuggrmhgvuceovghmrggtshhushgvrhesfhhrvggvmhgrihhlrdhhuheqnecukfhppeekgedrvdefiedrjedvrdekieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopedpihhnvghtpeekgedrvdefiedrjedvrdekiedpmhgrihhlfhhrohhmpegvmhgrtghsuhhsvghrsehfrhgvvghmrghilhdrhhhupdhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhrgh
X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy]
X-Received-From: 46.107.16.241
X-Spam-Score: 2.3 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  If you change the font of the default variable-pitch face
 (set-face-font 'variable-pitch "Arial-15") then shr renders h1 tags as regular
 size text. 
 Content analysis details:   (2.3 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (emacsuser[at]freemail.hu)
 1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 0.0 HTML_MESSAGE           BODY: HTML included in message
 -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at https://www.dnswl.org/,
 low trust [209.51.188.17 listed in list.dnswl.org]
 2.0 SPOOFED_FREEMAIL       No description available.
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

------=_Part_106617_38439590.1586356330304
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

If you change the font of the default variable-pitch face

(set-face-font 'variable-pitch "Arial-15")

then shr renders h1 tags as regular size text.

This is because variable-pitch is listed first in the face=C2=A0 setting an=
d
if it is set with size then it overrides the settings coming later:

(defun shr-tag-h1 (dom)
=C2=A0 (shr-heading dom (if shr-use-fonts
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 '(variable-pitc=
h (:height 1.3 :weight bold))
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 'bold)))
=C2=A0
------=_Part_106617_38439590.1586356330304
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

If you change the font of the default variable-pitch face<br />
<br />
(set-face-font &#39;variable-pitch &#34;Arial-15&#34;)<br />
<br />
then shr renders h1 tags as regular size text.<br />
<br />
This is because variable-pitch is listed first in the face&#160; setting and<br />
if it is set with size then it overrides the settings coming later:<br />
<br />
(defun shr-tag-h1 (dom)<br />
&#160; (shr-heading dom (if shr-use-fonts<br />
&#160;&#160; &#160;&#160;&#160; &#160; &#160; &#160; &#160; &#39;(variable-pitch (:height 1.3 :weight bold))<br />
&#160;&#160; &#160;&#160;&#160; &#160; &#160; &#160; &#39;bold)))<br />
&#160;
------=_Part_106617_38439590.1586356330304--




Acknowledgement sent to ndame <emacsuser@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#40508; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 8 Apr 2020 14:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.