From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#19752: 25.0.50; fonts in HTML Date: Wed, 12 Aug 2020 09:32:15 -0700 Message-ID: References: <877e5rqy4z.fsf@gnus.org> <87mudfupwj.fsf@marxist.se> <83mudek9h7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27897"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 19752-done@debbugs.gnu.org, larsi@gnus.org, rms@gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 12 18:33:15 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k5tgg-000762-4l for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Aug 2020 18:33:14 +0200 Original-Received: from localhost ([::1]:41650 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k5tgf-0002Ce-23 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Aug 2020 12:33:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43186) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5tgV-00027c-Sj for bug-gnu-emacs@gnu.org; Wed, 12 Aug 2020 12:33:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33766) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k5tgV-00030R-JY for bug-gnu-emacs@gnu.org; Wed, 12 Aug 2020 12:33:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k5tgV-00065D-H6 for bug-gnu-emacs@gnu.org; Wed, 12 Aug 2020 12:33:03 -0400 Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Aug 2020 16:33:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 19752 X-GNU-PR-Package: emacs Mail-Followup-To: 19752@debbugs.gnu.org, stefan@marxist.se, rms@gnu.org Original-Received: via spool by 19752-done@debbugs.gnu.org id=D19752.159724994423272 (code D ref 19752); Wed, 12 Aug 2020 16:33:03 +0000 Original-Received: (at 19752-done) by debbugs.gnu.org; 12 Aug 2020 16:32:24 +0000 Original-Received: from localhost ([127.0.0.1]:45297 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5tfr-00063H-Pd for submit@debbugs.gnu.org; Wed, 12 Aug 2020 12:32:24 -0400 Original-Received: from mail-yb1-f194.google.com ([209.85.219.194]:35307) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5tfq-000630-2Q for 19752-done@debbugs.gnu.org; Wed, 12 Aug 2020 12:32:22 -0400 Original-Received: by mail-yb1-f194.google.com with SMTP id y134so1702488yby.2 for <19752-done@debbugs.gnu.org>; Wed, 12 Aug 2020 09:32:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=UwnwkMQHDzYe82ieFvJtbi6nT6JiK0IU++cZroBRF6s=; b=VnelMHMWV/RG1zR6MJlyZ7Ibh1J+NxP9txlydrbnRIHzS4bVH3/jUyQRAIhoPTlO36 Quj74DLx85l9Nkn3FlXs4xehZlyZ2jxcoeTnfjXgrueSanYc0pUdPVrH0xk6L9gu3qUJ p5FcgJVhdIT1bgaG6XQohxoKGFVyQ9dKa/C3rczuu5i4SrIB/VkHG7kOTRWeXad+xmk7 YdxnIqk+cZChYlCiywUH/glrwbuX2chUxaOWi6rxbgN9KniAzHZyEZGa4zgQCsCc8z1V hJH2V/pBoiDKW1t5f5NSO0dVH3tudwFwXIKilCQGHB4NMdvSSAoav2bRrkAVb8nzRHlq URiw== X-Gm-Message-State: AOAM530sBnajcz4r8UoraHvprdVGkp6Y33SA5kh/+opqa/x6oqGaw7SE kU30O4/khz7O5sPQjaMjThRtDlf8JHeOyyqX1yj1xLXRHr8= X-Google-Smtp-Source: ABdhPJx3zRBOwfxjOyHzvyQxFTposSXu18YqttUHYo1ieNJg2G3C3BmHyDEyBmHedWJ2V/ilCigFNTSdH29JrpAsYGs= X-Received: by 2002:a5b:410:: with SMTP id m16mr220823ybp.309.1597249936308; Wed, 12 Aug 2020 09:32:16 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 12 Aug 2020 09:32:15 -0700 In-Reply-To: <83mudek9h7.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 02 Nov 2019 09:45:08 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:184831 Archived-At: Eli Zaretskii writes: >> From: Stefan Kangas >> Date: Sat, 02 Nov 2019 00:40:12 +0100 >> Cc: Richard Stallman , 19752@debbugs.gnu.org >> >> > 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