From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Gildea Newsgroups: gmane.emacs.devel Subject: anti-alias fix results in ugly scaled fonts Date: Fri, 14 Oct 2022 20:40:49 -0700 Message-ID: <517174.1665805249@pental> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5214"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 15 05:43:08 2022 Return-path: Envelope-to: ged-emacs-devel@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 1ojY4q-0001Fe-DE for ged-emacs-devel@m.gmane-mx.org; Sat, 15 Oct 2022 05:43:08 +0200 Original-Received: from localhost ([::1]:53170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojY4p-0002DU-46 for ged-emacs-devel@m.gmane-mx.org; Fri, 14 Oct 2022 23:43:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44880) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojY35-0000pY-26 for emacs-devel@gnu.org; Fri, 14 Oct 2022 23:41:19 -0400 Original-Received: from tigger.sg.gildea.net ([99.65.78.170]:45496 helo=tigger3.gildea.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojY32-0004yf-SY for emacs-devel@gnu.org; Fri, 14 Oct 2022 23:41:18 -0400 Original-Received: from pental.sg.gildea.net (pental.wg.gildea.net [192.168.113.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "pental-mail", Issuer "gildea.net Mail Root CA" (verified OK)) by tigger3.gildea.net (Postfix) with ESMTPS id 56EF93E1DA4 for ; Fri, 14 Oct 2022 20:40:49 -0700 (PDT) Original-Received: from pental (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by pental.sg.gildea.net (Postfix) with ESMTPS id 3B4FC60C1E0A for ; Fri, 14 Oct 2022 20:40:49 -0700 (PDT) X-Mailer: MH-E 8.6+git; nmh 1.7.1; Emacs 29.0.50 Content-ID: <517170.1665805249.1@pental> Received-SPF: pass client-ip=99.65.78.170; envelope-from=stepheng+emacs@gildea.com; helo=tigger3.gildea.net 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_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:297748 Archived-At: At HEAD, I get an ugly scaled font for my sans-serif text. I noticed it in MH-E, and you can reproduce it as follows: emacs -Q -fn fixed --eval "(buffer-face-set 'variable-pitch)" Although the default font is specified on the command line as "fixed" (from the misc-fixed X11 family of fonts), and the variable-pitch font selected is not in the misc-fixed family, having "fixed" as the default font affects the font selected for the "variable-pitch" face. Which font it selects changed recently. This bug seems to have been introduced by commit 6b1ed2f2c9, "Fix antialias face attribute when text is scaled", 27 August. In an Emacs built before that commit, the above command displays text with a pretty sans-serif font. That commit undoes some of the changes that addressed bug#17973. Bug#17973 fixed display of misc-fixed fonts. With that recent commit, using misc-fixed fonts again breaks some faces. < Stephen