Subject: bug#19752: closed (Re: bug#19752: 25.0.50; fonts in HTML)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 12 Aug 2020 16:33:03 +0000

Your bug report

#19752: 25.0.50; fonts in HTML

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
19752: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19752
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#19752: 25.0.50; fonts in HTML
From: Stefan Kangas <[email-masked]>
To: Eli Zaretskii <[email-masked]>
Cc: [email-masked], [email-masked], [email-masked]
Date: Wed, 12 Aug 2020 09:32:15 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

Eli Zaretskii <[email-masked]> writes:

>> From: Stefan Kangas <[email-masked]>
>> Date: Sat, 02 Nov 2019 00:40:12 +0100
>> Cc: Richard Stallman <[email-masked]>, [email-masked]
>>
>> > What does (display-color-cells) return for you?
>>
>> FWIW, I tried this on the Linux console and got 8.  I guess ideally
>> Richard would try if evaluating the following and see if it solves the
>> problem for him:
>>
>>     (setq shr-use-colors nil)
>
> This is an option, so "M-x set-variable RET works for it.  No need to
> use setq.
>
> More importantly, I think indeed this is on balance the best solution
> for these cases.  Emacs automatically maps any color to the closest
> available one, but HTML email messages can use color specifications
> that will cause both foreground and background convert to the same
> colors, which will make the text illegible.
>
> Or maybe shr.el can be taught to use the distant-foreground feature to
> handle such cases?
>
>> > -(defcustom shr-use-colors t
>> > +(defcustom shr-use-colors (> (display-color-cells) 256)
>
> This is too drastic, IMO.  Most HTML formatted emails use very few
> colors and look OK on display even with 8 colors.

No further updates within 40 weeks here.  The accepted solution is to
use:

    (setq shr-use-colors nil)

I'm therefore closing this bug report.  If this conclusion is incorrect,
please reply to this email (use "Reply to all" in your email client) and
we can reopen the bug report.

Best regards,
Stefan Kangas

Subject: 25.0.50; fonts in HTML
From: Richard Stallman <[email-masked]>
To: [email-masked]
Date: Mon, 02 Feb 2015 20:10:15 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

I received message in Rmail which had this:

    <body bgcolor="#ebebeb" class="ready" margin="0" padding="0" style="background:#ebebeb; margin:0; padding:0;">

and a lot of the text was unreadable on the tty.  This seems to happen
with a lot of messages (even some that are not spam).

Setting shr-inhibit-decoration to t made it possible to read the text.

Here is the entire message.

Date: Mon, 02 Feb 2015 12:57:18 +0000
From: via Brewster <[email-masked]>
Reply-to: [email-masked]
To: [email-masked]
Subject: Re: Richard's contact info 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>Join Brewster</title>
</head>
<body bgcolor="#ebebeb" class="ready" margin="0" padding="0" style="background:#ebebeb; margin:0; padding:0;">
<table id="wrapper" border="0" cellpadding="0" cellspacing="0" style="text-algin: center;" width="100%"><!-- wrapper -->
	<tbody>
		<tr align="center">
			<td>
			<table border="0" cellpadding="0" cellspacing="0" style="margin-right:auto; margin-left:auto;"><!-- inner -->
				<tbody>
					<tr>
						<td style="height:30px;">&nbsp;</td>
					</tr>
					<tr><!-- page -->
						<td>
						<table border="0" cellpadding="0" cellspacing="0" style="text-align:center; background:#fff;border:#e3e3e3 solid 1px;border-radius: 7px;margin:0 auto;padding:0px;" width="380">
							<tbody>
								<tr><!-- logo -->
									<td style="padding: 20px 0px; border-bottom:#e3e3e3 solid 1px;"><img alt="" src="https://www.brewster.com/assets/sharing-email/logo-name-email.png" /></td>
								</tr>
								<!-- end logo -->
								<tr><!-- content -->
									<td>
									<table border="0" cellpadding="0" cellspacing="0" style="background:#fff;border-radius:7px;" width="380">
										<tbody>
											<tr>
												<td style="width: 35px;">&nbsp;</td>
												<td>
												<table border="0" cellpadding="0" cellspacing="0" width="310" style="text-align: center;background:#fff;">
													<tbody>
														<tr>
															<td style="height:40px;">&nbsp;</td>
														</tr>
														<tr align="center"><!-- profile picture -->
															<td style="text-align:center;"><img alt="" height="80" src="https://d1m45cu0ml8qff.cloudfront.net/silhouette/resize_to_fill_center_on_faces/60x60" style="border-radius:50%; border:#e3e3e3 solid 1px;" width="80" /></td>
														</tr>
														<tr>
															<td style="height:20px;">&nbsp;</td>
														</tr>
														<!-- End profile picture and bottom padding -->
														<tr>
															<td>
															<p style="margin-top:0px;font-size:17px;line-height: 26px;font-family: HelveticaNeue-Light, Helvetica Neue, Helvetica, Arial, sans-serif;color: #636363; font-weight:lighter;text-align:center;">
																 asked us to reach out and confirm they have your latest info
															</p>
															<p style="margin-top:0px;font-size:17px;line-height: 26px;font-family: HelveticaNeue-Light, Helvetica Neue, Helvetica, Arial, sans-serif;color: #636363; font-weight:lighter;text-align:center;">
																Here&#39;s what they have for you now:
															</p>
															</td>
														</tr>
														<tr>
															<td style="height:20px;">&nbsp;</td>
														</tr>
														<tr>
															<td style="border-bottom:#e3e3e3 solid 1px;border-top:#e3e3e3 solid 1px;padding-bottom:20px;">
															
															<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head>
<body style='color:#000;font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:15px;line-height:22px'><table class="inviteTable" style="cellpadding:0;cellspacing:0;border:none;width:100%;padding-top:20px;background:#ffffff">
<tr class="inviteListElement" style="margin:0 auto;padding-botton:10px;min-height:33px;max-height:33px">
<td class="inviteIcon" style="border-collapse:collapse;min-width:30px;width:30px;height:33px;background-color:white;clear:both">
<img src="https://app.brewster.com/images/assets/email/email.png" style="display:block">
</td>
<td class="inviteText normalInviteText" style='border-collapse:collapse;max-height:33px;vertical-align:baseline;line-height:29px;font-size:17px;min-height:33px;margin:0 auto 0;height:33px;outline:none;font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Helvetica, Arial, sans-serif;color:#636363;max-width:180px;text-align:left'>
<div class="textContentWrapper" style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:break-word;word-break:break-all;max-height:33px">
<a class="inviteLink" href="#" style='max-height:33px;color:inherit;text-decoration:none;font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Helvetica, Arial, sans-serif;'>
[email-masked]
</a>
</div>
</td>
</tr>
<tr class="inviteListElement" style="margin:0 auto;padding-botton:10px;min-height:33px;max-height:33px">
<td class="inviteIcon" style="border-collapse:collapse;min-width:30px;width:30px;height:33px;background-color:white;clear:both">
<img src="https://app.brewster.com/images/assets/email/phone-red.png" style="display:block">
</td>
<td class="inviteText placeholderInviteText" style='border-collapse:collapse;max-height:33px;vertical-align:baseline;line-height:29px;font-size:17px;min-height:33px;margin:0 auto 0;height:33px;outline:none;font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Helvetica, Arial, sans-serif;text-align:left;color:#f26522;max-width:180px'>
<div class="textContentWrapper" style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:break-word;word-break:break-all;max-height:33px">
<a class="inviteLink" href="#" style='max-height:33px;color:inherit;text-decoration:none;font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Helvetica, Arial, sans-serif'>
Mobile Number
</a>
</div>
</td>
</tr>
</table></body>
</html>

															</td>
														</tr>
														<tr>
															<td style="height:40px;">&nbsp;</td>
														</tr>
														<tr><!-- button -->
															<td style="background:#4098bc;border-radius: 5px; padding: 15px 0px;font-size:16px;text-align:center;font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-weight:bold;"><a class="action" href="http://email.brewster.com/wf/click?upn=5Y9vRPksPl8YR2cxJ-2FiKxdqbiLUxYd3lymLWu-2B64wsQCiTnNTtDmKH6a24P7SRQhVL0ClR3axMQt9vdO8-2B89sSI5fUsiUWcXiIJrbHJF0cslA5n069CpLIlMd1HBLoXbcLl78HIs5IfM3YMj6G6mnUczVsuhv1taOPkeOkfFawTfP2L2bynsXSGg8w-2BwrEioBPfkPxw23cg3yCihTRiLnR3ERDIoJKX9rAfF8gB7xFKvrrJPaeoKMQ6VVmKUBYbzpeGrvQXaXJR74NMyp3jUDY-2FcwNcb5RB0bmqJFc3n4oR5kYWQoIvRqrjlcXtDcK9wy8UyqFOLJb2qTgRGjbIb-2B0zsyGhP59UvxiUd8AZ7My1LnO3hhllE31RCjIvvqit5_4vKmXSHxNtX8ogbiTZEEmSRtwPrMxVBbf7NAGFxtmSKI8q4zNPP47bVm8WunbBOqi51zbLNANV7XEJmOmTDbMiA5lNY0psYXSGaHCubrAEgxv5GlYTxtF4enRuy87o4KVLL4GPkvnXKjP-2Be3r59Ae2-2BeSkU-2BNwnoKqUGNOgLLi4Gvtks2D-2BJEBxQE7Vi9Na7VzLzTc6R1l3EMTLA3LJNS5ybTkssMfDcvcS6lQAPA0xQlSSfXG5ltoQIK2A68gwQi9-2FMX99rHgOqb8HiwIVwannqTf4ri87t8qosXtD0D2EthIOWYJ6-2FDwZ9ABezDZHGUmgklOAINxa4E4gJ0L604A-3D-3D" style="color:#fff;text-decoration: none;padding:15px 0px;">Confirm / Update</a></td>
														</tr>
														<!-- button end -->
														<tr>
															<td style="font-size: 11px;color: #cfcfcf;font-style: italic;text-align: center;padding-top: 5px;font-family: HelveticaNeue-Light, Helvetica Neue, Helvetica, Arial, sans-serif;">For your safety, this link expires in 48 hours</td>
														</tr>
														<tr>
															<td style="height:40px;">&nbsp;</td>
														</tr>
													</tbody>
												</table>
												</td>
												<td style="width: 35px;">&nbsp;</td>
											</tr>
										</tbody>
									</table>
									</td>
								</tr>
								<!-- end content -->
								<tr><!-- Feature on -->
									<td>
									<table border="0" cellpadding="0" cellspacing="0" style="background:#f7f7f7; border-top:#e3e3e3 solid 1px;" width="380">
										<tbody>
											<tr>
												<td style="height:25px;">&nbsp;</td>
											</tr>
											<tr>
												<td style="font-size: 11px; color:#9a9a9a;font-family: HelveticaNeue-Light, Helvetica Neue, Helvetica, Arial, sans-serif;padding-bottom: 15px;text-align:center;">Featured on:</td>
											</tr>
											<tr>
												<td align="center" class="footer" width="380">
													<img alt="The New York Times" class="feature" src="https://app.brewster.com/images/assets/landing/_times.png" style="display: inline;width: auto;height: 22px;padding: 5px;" height="22" /> 
													<img alt="Business Insider" class="feature" src="https://app.brewster.com/images/assets/landing/_bi.png" style="display: inline;width: auto;height: 22px;padding: 5px;" height="22" /> 
													<img alt="Fast Co." class="feature" src="https://app.brewster.com/images/assets/landing/_fastco.png" style="display: inline;width: auto;height: 22px;padding: 5px;" height="22" /> 
													<img alt="TechChrunch" class="feature" src="https://app.brewster.com/images/assets/landing/_techcrunch.png" style="display: inline;width: auto;height: 22px;padding: 5px 5px 0 5px;" height="22" /> 
													<img alt="All Thinks Digital" class="feature" src="https://app.brewster.com/images/assets/landing/_allthingsd.png" style="display: inline;width: auto;height: 22px;padding: 5px 5px 0 5px;" height="22" />
												</td>
											</tr>
											<tr>
												<td style="height:25px;">&nbsp;</td>
											</tr>
										</tbody>
									</table>
									</td>
								</tr>
								<!-- Feature on end -->
								<tr>
									<td>
									<table border="0" cellpadding="0" cellspacing="0" style="background:#f7f7f7;border-bottom-right-radius:7px;border-bottom-left-radius:7px; border-top:#e3e3e3 solid 1px;" width="380">
										<tbody>
											<tr>
												<td rowspan="6" style="width:25px;">&nbsp;</td>
												<td style="height:30px;">&nbsp;</td>
												<td rowspan="6" style="width:25px;">&nbsp;</td>
											</tr>
											<tr>
												<td width="310" style="color:#858585;font-family: Helvetica Neue, Helvetica, Arial, sans-serif;font-size: 11px;line-height:28px;text-align:center;"><span style="font-weight:bold;">Why did you receive this email?</span><br />
												The sender wanted to confirm that above contact info is up-to-date. Your displayed contact details are what they currently have for you. Your info is 100% secure and private between you and sender. Please email us with questions at <a href="mailto:[email-masked]" style="color:#4098bc;text-decoration:none;">[email-masked]</a>.<br />
												Happy staying in touch!</td>
											</tr>
											<tr>
												<td style="height:30px;">&nbsp;</td>
											</tr>
										</tbody>
									</table>
									</td>
								</tr>
							</tbody>
						</table>
						</td>
					</tr>
					<!-- end page -->
					<tr align="center"><!-- footer -->
						<td>
						<table border="0" cellpadding="0" cellspacing="0" style="text-align:center;" width="380">
							<tbody>
								<tr>
									<td rowspan="4" style="height:40px;width:20px;">&nbsp;</td>
									<td style="height:40px;">&nbsp;</td>
									<td rowspan="4" style="height:40px;width:20px;">&nbsp;</td>
								</tr>
								<tr>
									<td><img alt="Brewster Logo" height="19" src="https://app.brewster.com/images/assets/email/footer-logo.png" width="100" />
									<p style="font-size: 11px; color:#858585;font-family: Helvetica Neue, Helvetica, Arial, sans-serif;font-weight:bold;line-height:25px;text-align: center;">Your Contacts, Synced Anywhere</p>

									<p style="font-size: 11px; color:#858585;font-family: Helvetica Neue, Helvetica, Arial, sans-serif;text-align:center;">11 East 4th St. #2F New York, NY 10003</p>
									</td>
								</tr>
								<tr>
									<td style="height:25px;">&nbsp;</td>
								</tr>
								<tr style="text-align:center;">
									<td>
									<p style="padding: 10px;margin: 0;color: black;font-size: 15px;line-height: 22px;text-align:center;"><a class="footer-text" href="http://email.brewster.com/wf/unsubscribe?upn=4vKmXSHxNtX8ogbiTZEEmSRtwPrMxVBbf7NAGFxtmSKI8q4zNPP47bVm8WunbBOqHRjGaaNeFMlnh-2FTAczf4D2fn5QfDgm8JdEYmcw11jhDd7DY0n7qusXlD1nE384KOddNj7QGxJo0csXTkorFSHxXu05vSvu-2FKsF-2BoYdRnOIGVnyq5bzy6iSCpi3cu5yGStfIf8SPBvzmjidiMA5jA4VlP41Z2SR4Tod3O2Yw0RwlycgfaqDTLSMH6jVIFta2toq5VTAiPojP0kqG-2Fcubn5YFaC1V82DPDYpQW4rP1o1t7CaqXe8WMDqRYhYDd6ShGJH2mnxCKOueNR14NUHCpLA-3D-3D" style="color: #9a9a9a;font-size: 11px;font-family: Helvetica Neue, Helvetica, Arial, sans-serif;">Unsubscribe</a></p>
									</td>
								</tr>
							</tbody>
						</table>
						</td>
					</tr>
					<!-- end footer -->
					<tr>
						<td style="height:30px;">&nbsp;</td>
					</tr>
				</tbody>
			</table>
			<!-- end inner --></td>
		</tr>
	</tbody>
</table>
<!-- end wrapper -->

<img src="http://email.brewster.com/wf/open?upn=4vKmXSHxNtX8ogbiTZEEmSRtwPrMxVBbf7NAGFxtmSKI8q4zNPP47bVm8WunbBOqbn2wOwfd9dcEKFCzNiaM1z6sCcjK1kHiG0Ipd2oAd5mw6LhPHpLZRavplAllvMGyDK1xhYU4IT5vfYQk-2BzxB9xga2B8oaD7x4GbMdydoSM9dCM8J-2Bd2Idp12hdPkN-2BmoGMfA6FkPi4zJFI-2F7QXRZVnSFq0AtfaxSj1qBvXgsPmDBFZsVhiz8i6t1dWNDseEC2F4DZAqZFlZfyiaNxoPXJ0B3yA0jTNPkGIGqWzlsokqazHpTlxEa6ptJqD-2FcIFfuDA1v3IXwkeWgdC322SgDuA-3D-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;"/>
</body>
</html>

In GNU Emacs 25.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10)
 of 2015-02-01 on rms
System Description:	Trisquel GNU/Linux 6.0.1, Toutatis

Configured using:
 `configure 'CFLAGS=-g3 -O0''

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GCONF GSETTINGS NOTIFY
LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: RMAIL

Minor modes in effect:
  shell-dirtrack-mode: t
  diff-auto-refine-mode: t
  gpm-mouse-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  abbrev-mode: t

Recent messages:
Mark saved where search started
Mark set
Mark saved where search started
Quit [2 times]
Grep finished (matches found)
Quit
Grep finished (matches found) [2 times]
Mark set
Mark saved where search started [4 times]
Mark set

Load-path shadows:
None found.

Features:
(shadow emacsbug wid-edit descr-text epa-mail quail ispell battery
cal-move cal-menu calendar cal-loaddefs doc-view image-mode url-auth
url-queue url-cache url url-proxy url-privacy url-expand url-methods
url-history url-cookie url-domsuf mailcap pp cc-mode cc-fonts cc-guess
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs
eieio-opt speedbar sb-image ezimage find-func apropos help-mode debug
bug-reference add-log parse-time vc-cvs sgml-mode rmailsum jka-compr
shell pcomplete grep rmailout dabbrev mailalias epa derived epg
shr-color color dframe whitespace vc vc-git compare-w diff-mode
easy-mmode vc-dispatcher vc-bzr misearch multi-isearch dired-aux
compile comint ansi-color ring mule-util url-util url-parse
auth-source cl-macs eieio byte-opt gv bytecomp byte-compile cl-extra
seq cconv eieio-core cl-generic gnus-util password-cache url-vars shr
dom cl-loaddefs cl-lib subr-x pcase browse-url qp rmailmm message
sendmail format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies
mm-encode mailabbrev gmm-utils mailheader mail-parse rfc2231 rmail
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils dired t-mouse
package epg-config view time-date paren cus-start cus-load advice
help-fns tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer cl-preloaded nadvice loaddefs button faces cus-face
macroexp files text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget hashtable-print-readable backquote
make-network-process dbusbind gfilenotify dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty emacs)

Memory information:
((conses 8 424139 77378)
 (symbols 24 39378 21)
 (miscs 20 1040 4299)
 (strings 16 65201 7627)
 (string-bytes 1 3808727)
 (vectors 8 31514)
 (vector-slots 4 1431088 47202)
 (floats 8 347 805)
 (intervals 28 66631 1012)
 (buffers 520 84)
 (heap 1024 20119 1794))
[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

-- 
Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org  www.gnu.org
Skype: No way! See stallman.org/skype.html.