From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Cecilio Pardo Newsgroups: gmane.emacs.bugs Subject: bug#73730: 31.0.50; Support for color fonts on MS-Windows Date: Wed, 23 Oct 2024 16:17:03 +0200 Message-ID: References: <36a6b4d5-c719-44d6-957d-bcd7db5a854b@imayhem.com> <86o73s14x5.fsf@gnu.org> <0a0c622c-5b69-4f30-94b1-67a238e124b4@imayhem.com> <861q0gqpkf.fsf@gnu.org> <0d2238ff-5cf9-4ba7-97ab-11b76892198d@imayhem.com> <86bjzjp7vv.fsf@gnu.org> <80dc50bd-b2d4-4d21-ad38-322412588b3b@imayhem.com> <86o73ej2u7.fsf@gnu.org> <8e5ffc88-dda8-4b4d-a133-f80029825347@imayhem.com> <86plnrdtm1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16372"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: 73730@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 23 16:18:03 2024 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 1t3cBX-00043s-Mc for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Oct 2024 16:18:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3cBF-0001v7-8G; Wed, 23 Oct 2024 10:17:46 -0400 Original-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 ) id 1t3cB3-0001uX-Cy for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2024 10:17:33 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t3cB3-0003JS-1V for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2024 10:17:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=cOAoJ0i4bj9whJlxHzC18wpfmNWuD8zE+JUGILXiq7Y=; b=URCXxir4025ZJ1A+49Oseo6cANn0dcbtuFTl+5xr97o5xz9k1yVGvLKJsgh+vxu9kPZAmGni7EzJ43sbb+R8H0Y0MKjA13m70FLQj2f7Jkg5Paa0egQ5m8urWJkjM04S+q/C7g30Vy/zWrGZsmyWNtLhuhlnC8fROlpidP/jVWlvMAXyPlnIHrx/E7qt+j2a8fXJTDhelKiD4WxcQOIIMSmu1gzJEj9YX3FqXAAuGQawlRRY3IcuGGcNuzyNdpBAEa+duz3c8Zarv9UF9wa8iOvvA4uP81bv3vEPDnVcIo6jFzOTDK8KEMy496k5oFlBu42pZFLS0TgSftJN9bH80g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t3cBW-0006Xv-4I for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2024 10:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Cecilio Pardo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Oct 2024 14:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73730 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.172969306125123 (code B ref -1); Wed, 23 Oct 2024 14:18:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Oct 2024 14:17:41 +0000 Original-Received: from localhost ([127.0.0.1]:60341 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3cBB-0006X7-EU for submit@debbugs.gnu.org; Wed, 23 Oct 2024 10:17:41 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:44474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3cB9-0006X0-Ll for submit@debbugs.gnu.org; Wed, 23 Oct 2024 10:17:40 -0400 Original-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 ) id 1t3cAf-0001hr-MP for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2024 10:17:09 -0400 Original-Received: from mail.imayhem.com ([82.223.54.191] helo=zealous-pike.82-223-54-191.plesk.page) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t3cAd-0003Ac-Ci for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2024 10:17:09 -0400 Original-Received: from [192.168.68.104] (111.red-88-21-7.staticip.rima-tde.net [88.21.7.111]) by zealous-pike.82-223-54-191.plesk.page (Postfix) with ESMTPSA id 631C5800FA for ; Wed, 23 Oct 2024 14:17:04 +0000 (UTC) Authentication-Results: zealous-pike.82-223-54-191.plesk.page; spf=pass (sender IP is 88.21.7.111) smtp.mailfrom=cpardo@imayhem.com smtp.helo=[192.168.68.104] Received-SPF: pass (zealous-pike.82-223-54-191.plesk.page: connection is authenticated) Content-Language: es-ES In-Reply-To: <86plnrdtm1.fsf@gnu.org> Received-SPF: pass client-ip=82.223.54.191; envelope-from=cpardo@imayhem.com; helo=zealous-pike.82-223-54-191.plesk.page X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:294147 Archived-At: On 23/10/2024 12:03, Eli Zaretskii wrote: >> - DirectWrite is available since Windows 7, but color glyphs are >> available only since Windows 8.1. We only enable DirectWrite since >> Windows 8.1. This is stated on the NEWS entry. > > Sounds okay, but I don't see the Windows version tested anywhere in > the code which initializes DWrite. What did I miss? The IDWriteFactory2 interface is only available from 8.1, so it will fail on previous versions when we request it in w32_initialize_direct_write. >> - The default value for the Gamma render parameter in DirectWrite >> gives very 'light' characters. I changed it to 1.4, which matches >> GDI and looks better. But that's just my opinion. > > Does the best value depend on whether the theme is light or dark? No, it looks too dim for me on both. > In any case, this sounds like a good candidate for a variable that people > could modify if they want. Maybe we should also expose to Lisp the > values of enhanced contrast and clear-type level? Assuming that > setting these from .emacs (or maybe in early-init?) at all could take > effect, that is. [...] > Does it work to set w32-inhibit-dwrite in the .emacs init file? If you change it in .emacs or early-int it will work, but will not prevent dwrite initialization and some text output. I am initializing on syms_of_w32uniscribe_for_pdumper. Could I initialize on some other place, so that the user can skip dwrite completely? Also, it will allow to add configuracion variables for Gamma, etc, without having to reinit if the user sets them.