GNU bug report logs - #67269
30.0.50; italic face fallback does not assume italic properties

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: Po Lu <luangruo@HIDDEN>; Keywords: notabug; dated Sun, 19 Nov 2023 06:02:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) notabug. Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 67269) by debbugs.gnu.org; 19 Nov 2023 06:38:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 19 01:38:24 2023
Received: from localhost ([127.0.0.1]:49811 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1r4bRo-0005uH-6u
	for submit <at> debbugs.gnu.org; Sun, 19 Nov 2023 01:38:24 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:59196)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>)
 id 1r4bRl-0005tp-Er; Sun, 19 Nov 2023 01:38:23 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1r4bRe-0001AJ-Ni; Sun, 19 Nov 2023 01:38:14 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=qecxywyNtmDS2Bri6G30zFqXbBm5RKVHZZlBROKVV7w=; b=qYpQCXzcRwEL
 ld3S838eGdK1gdPWA2WdK9++vyAAZIg0pKWCLmh1540wPxxuVBYMB0aEk3UTHiuqYAz+bIhLYEiAM
 uRTkXe5w9gXFOdMJCAM8M0feecR8RXlzjBOcW7879jLnlanoiZ366WQ/DVW6kC7jjGJIIZGvwakif
 ovtY4TVi3ogOzb/49xqc/yUE4iEavUAwaas83n1RmZM4L4zf7b8lPATz9nxzqJcsVIJZIBxaYPIIT
 7h97MfZ39Kweh7JDZXs8/saAhrx10dsbadOameKYMmdRAryOQYx2lD0uH0RuFy2NYfZ5eQJoCWt+q
 Tr0IctzWfgw6S4k+M2z2lw==;
Date: Sun, 19 Nov 2023 08:37:55 +0200
Message-Id: <83leaul03g.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Po Lu <luangruo@HIDDEN>
In-Reply-To: <87jzqejn8f.fsf@HIDDEN> (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#67269: 30.0.50;
 italic face fallback does not assume italic properties
References: <87jzqejn8f.fsf.ref@HIDDEN> <87jzqejn8f.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 67269
Cc: 67269 <at> debbugs.gnu.org
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: -3.3 (---)

tags 67269 notabug
thanks

> Date: Sun, 19 Nov 2023 14:01:04 +0800
> From:  Po Lu via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> 
> When the default font doesn't supply an Italic variant, the italic face
> is assigned an underline propery in its place.  But when the italic face
> is merged with another face whose font does supply such a variant, the
> underline is applied all the same while the slant that would ideally be
> also is disregarded.
> 
> Hence if the default font is set to Droid Sans Mono (with no Italic
> variant) while shr-text is set to Times New Roman, italic text rendered
> by shr:
> 
>   (shr-text italic)
> 
> is underlined rather than slanted.  Moreover, no underline or slant is
> manifested if there is an Italic variant to the default font but not the
> face being merged with italic, depriving such italic text of any visual
> distinctiveness.

I see no bug here.  You are talking about faces defined with defface,
which are always based on the default font.  Given that fact, there's
not much we can do here, except perhaps keep the :slant attribute
together with :underline (although that's questionable, and I'm not
sure we should do that).  Removing the underline when a non-default
font does have the italic variant is not TRT, since it will cause
parts of the text appear with an underline and other parts without it.

Basically, choosing a default font that doesn't have the italic
variant is simply a bad idea, so what you describe is a cockpit error,
not an Emacs bug.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#67269; Package emacs. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 19 Nov 2023 06:01:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 19 01:01:47 2023
Received: from localhost ([127.0.0.1]:49777 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1r4asN-0001va-L0
	for submit <at> debbugs.gnu.org; Sun, 19 Nov 2023 01:01:47 -0500
Received: from lists.gnu.org ([2001:470:142::17]:39966)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1r4asI-0001vG-5G
 for submit <at> debbugs.gnu.org; Sun, 19 Nov 2023 01:01:46 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <luangruo@HIDDEN>)
 id 1r4as5-00046q-PP
 for bug-gnu-emacs@HIDDEN; Sun, 19 Nov 2023 01:01:32 -0500
Received: from sonic305-20.consmr.mail.ne1.yahoo.com ([66.163.185.146])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <luangruo@HIDDEN>)
 id 1r4as3-0006vf-DX
 for bug-gnu-emacs@HIDDEN; Sun, 19 Nov 2023 01:01:29 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1700373684; bh=opLC1UozGqxLprm7LxfqdSH8qlKjg6AVkZB3VOX7mAs=;
 h=From:To:Subject:Date:References:From:Subject:Reply-To;
 b=iVmyn90+UIi/akAJjf+oB9ru69MKG0NPIIKS2hgqYVzFu7EaHBZFo16gYDxSEoEGASwJcJlJpbGvrtHOTJYlQkcyxCd1gONT+Ol9El3CVnBklo27bXcswWo+scdWnptCUSvIfT65FOQqRV49xyaAvVOEIMg36m29TZVFafRVm3RDyJxiiVcsiuvSN6RvBbJsa7IYVkUzjhFRzc+o3DN9A9XBCku61bjqI4dm7MVqHfRVIJHlmqhLNkv9bqrlA734fbxIy6Bz27wnqzisjlUua9sa5BcvC2kYiL8uNRIUh15pt/FB+bB0A8kq2tvAuUhdx5A503g3qozT9kTKiuuzUw==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1700373684; bh=XJFsbpuxt+WIEGDYOjZpDKLA4pxI2DnYJJqmtZ8Cp+6=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=U992hnAjJ2OGoDpqGwnwFGa22TLoICWinXWqxxl7zbba6KvWQEO3RpF+N9QRdqJ+b2IIkFOmOra7a20Uv7rKJxLyWjInsAEScqHvdwVqK4CoIzrRqwqo32HUcBCx3u2KBCPR9mUv0RiX5gHKsIPQ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gKBS_3rjzXdbpVAx4Jwr91s1kiLeiJ_6uwxWDx8iPutdn4jh7x2xu4Ut.OwptHs28
 3zBuWaaNpcMtROescLy1abl.MTPhCqAsPeA.sVSz.O.cuWmGsmAD.5uGjkPxSleD5EnXLPnCjk3a
 NsADPUheIxVy3_UEl5gKWroQXK.ABQg0saUFn61uatn0T4VGUhzTwbcLziNvbL3aliZCxPI3G5_h
 noExA3ujpa2jP.vOv969DUT9divXQKWPHN2CAfksEY3IqxD7JQ5ryExEGgo6LNUCc8.uJbF6zdKR
 RPuYDf5XqftV0D.ZIEav8j7ZXFeE8YrVBRU_uR6J_Jm5MpIV1sbJkxFZab4SN8dCV2NsfEOiwyN4
 Ux1aojI4QTWIxhi.qHS6_951J2HFTw.94U7Dgq6FKb0I-
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: 2012c672-747f-4604-a466-fdf0fc128b9c
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic305.consmr.mail.ne1.yahoo.com with HTTP; Sun, 19 Nov 2023 06:01:24 +0000
Received: by hermes--production-sg3-8696d769c6-lsp29 (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 943b02deb19ab224af37d73dc6726b05; 
 Sun, 19 Nov 2023 06:01:17 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 30.0.50; italic face fallback does not assume italic properties
Date: Sun, 19 Nov 2023 14:01:04 +0800
Message-ID: <87jzqejn8f.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
References: <87jzqejn8f.fsf.ref@HIDDEN>
X-Mailer: WebService/1.1.21896
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 713
Received-SPF: pass client-ip=66.163.185.146; envelope-from=luangruo@HIDDEN;
 helo=sonic305-20.consmr.mail.ne1.yahoo.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.7 (+)
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:  When the default font doesn't supply an Italic variant, the
 italic face is assigned an underline propery in its place. But when the italic
 face is merged with another face whose font does supply such [...] 
 Content analysis details:   (1.7 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (luangruo[at]yahoo.com)
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 0.7 SPF_NEUTRAL            SPF: sender does not match SPF record (neutral)
 1.0 FORGED_YAHOO_RCVD      'From' yahoo.com does not match 'Received'
 headers -0.0 T_SCC_BODY_TEXT_LINE   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 (/)

When the default font doesn't supply an Italic variant, the italic face
is assigned an underline propery in its place.  But when the italic face
is merged with another face whose font does supply such a variant, the
underline is applied all the same while the slant that would ideally be
also is disregarded.

Hence if the default font is set to Droid Sans Mono (with no Italic
variant) while shr-text is set to Times New Roman, italic text rendered
by shr:

  (shr-text italic)

is underlined rather than slanted.  Moreover, no underline or slant is
manifested if there is an Italic variant to the default font but not the
face being merged with italic, depriving such italic text of any visual
distinctiveness.




Acknowledgement sent to Po Lu <luangruo@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#67269; 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: Sun, 19 Nov 2023 06:45:02 UTC

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