From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: master a739cab6637 2/2: ; * doc/lispref/display.texi (Image Descriptors): Insert missing text. Date: Fri, 07 Jun 2024 09:29:36 +0300 Message-ID: <86plstfepb.fsf@gnu.org> References: <171740380294.31568.538114951586755322@vcs2.savannah.gnu.org> <20240603083643.B2E29C009F4@vcs2.savannah.gnu.org> <87wmn6l10l.fsf@gmail.com> <86le3igu0c.fsf@gnu.org> <87zfryfbuz.fsf@yahoo.com> <86ed9agph3.fsf@gnu.org> <87v82mfa0z.fsf@yahoo.com> <868qzigldb.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19709"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rpluim@gmail.com, emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 07 08:30:21 2024 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 1sFT7E-0004xw-Vr for ged-emacs-devel@m.gmane-mx.org; Fri, 07 Jun 2024 08:30:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFT6d-0002xj-LH; Fri, 07 Jun 2024 02:29:43 -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 1sFT6b-0002xT-7B for emacs-devel@gnu.org; Fri, 07 Jun 2024 02:29:41 -0400 Original-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 ) id 1sFT6Z-00010N-JZ; Fri, 07 Jun 2024 02:29:40 -0400 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=+wTfqq8n0KH6cGbhp52VGroL4ft3VAQiNArPLpJ68kI=; b=rFGVLmtv8bgp BcSjtL8RYMo1lipY7v4kq88OwtY3fZANU8u+ukfxJKY/8gB4gvu6I4b8dU3+lY9qNuyGey14lX2rC Fyoxr5QOk/e1Zs5GQaqKdEHl7hYJx60j60zzFhHomxo4VJR9sEogAmwh/f+bfe2PfHdNyvRLbOU6N SO6m5Xz6sgSB4g2LFLL9AxhRoFziORywHtLYB8h+4Fk62PnY6dTVxaYeHBQgChCDPxA/yh8peBqDv 01NI/Yy+Uy3iDvBrZJJ4M6UzCl8/m2Vw69WkKsdTKyM+Xgc8fHMvHAYQtYVpCcYz1LcjdZNFSOyjs dxdQ5hudWXAUrCLwow2Csw==; In-Reply-To: (message from Po Lu on Fri, 07 Jun 2024 08:14:36 +0800) 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:319861 Archived-At: > From: Po Lu > Cc: rpluim@gmail.com, emacs-devel@gnu.org > Date: Fri, 07 Jun 2024 08:14:36 +0800 > > Eli Zaretskii writes: > > > And I would like to explain more about "computing the scaling factor > > based on pixel size of the font used by the frame's default face", and > > what happens if the default font's width is 10 pixels or below, but > > your text doesn't really tell that story. I think it should. (Btw, > > the default width of the font in "emacs -Q" on Windows is 8, so it > > will always hit the case which was left unexplained.) > > Below 10 pixels, the image is not scaled unless a numeric scale be > provided in image-scaling-factor. As for the reasoning behind this > arbitrary value, you'll need to ask Lars, whose code I've merely > reproduced in C. So this means at least on Windows, where the default font's width is 8, the image will never be scaled in "emacs -Q", am I right? I think on macOS the default width is 7, so the same will happen there as well? What is the default width of the font on GNU/Linux? And finally, can you tell more about how the scale factor is computed "based on the font's pixel size"? Or point me to the code which does that? I think some of that should be in the manual, to give the users some idea of what will happen. Thanks.