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.bugs Subject: bug#67533: SVG images confound position pixel measurements Date: Sun, 03 Dec 2023 18:31:18 +0200 Message-ID: <83h6kz6yeh.fsf@gnu.org> References: <9B9C683E-B951-406E-98AA-32F4539B3FF7@gmail.com> <83o7fbb0zf.fsf@gnu.org> <6158BB83-3C05-4CEC-BF65-A6C0DEA329CD@gmail.com> <837clybds3.fsf@gnu.org> <83wmtx83io.fsf@gnu.org> <906A480A-85B4-4AB0-B2E3-1533A48C228D@gmail.com> <835y1g8z7v.fsf@gnu.org> <8334wk8kd1.fsf@gnu.org> <8672011B-4C83-4983-9DEA-43ED009042F8@gmail.com> <616C9D31-F265-4735-B73E-C0574D79F7F1@gmail.com> <83r0k3782q.fsf@gnu.org> <83jzpv707n.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5845"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67533@debbugs.gnu.org, jdtsmith@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 03 17:32:15 2023 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 1r9pOA-0001Jx-LQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 Dec 2023 17:32:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r9pNu-0004GD-O3; Sun, 03 Dec 2023 11:31:59 -0500 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 1r9pNp-0004G3-UL for bug-gnu-emacs@gnu.org; Sun, 03 Dec 2023 11:31:54 -0500 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 1r9pNn-0007H9-NL for bug-gnu-emacs@gnu.org; Sun, 03 Dec 2023 11:31:53 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r9pNx-0005eP-NK for bug-gnu-emacs@gnu.org; Sun, 03 Dec 2023 11:32:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Dec 2023 16:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67533 X-GNU-PR-Package: emacs Original-Received: via spool by 67533-submit@debbugs.gnu.org id=B67533.170162109521685 (code B ref 67533); Sun, 03 Dec 2023 16:32:01 +0000 Original-Received: (at 67533) by debbugs.gnu.org; 3 Dec 2023 16:31:35 +0000 Original-Received: from localhost ([127.0.0.1]:60683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r9pNX-0005dh-D0 for submit@debbugs.gnu.org; Sun, 03 Dec 2023 11:31:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r9pNV-0005dQ-FN for 67533@debbugs.gnu.org; Sun, 03 Dec 2023 11:31:33 -0500 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 1r9pNE-0007EI-Ts; Sun, 03 Dec 2023 11:31:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=N+f/MkoxaB9esMwB2pn8vilXnE7TneQkShOzgAAYdDE=; b=TKqDpO8v54gzJ14Q2j6e +f/HxjpIviSe/S7dGDc0uAFPR1EasfX/oxL+qz7WabGli7GqA2SaVgizzfh3effgSkvkPjZvvWtWi egKWr8Nz4SdYb/GARn1tpsVMHiAgv2aHBlLQx2I6Jsc0X2/ErMo7SK61zZj4v71NgXX7v5M2REG9p kizMJ6igLdJPaiFi5M06CqX4tQcDAaltVD8sPYySOqdo7sVzzJea9yGOWG1yBJU7gkN+8b7lyfwcX wtRLwZ53y1ZbjdkdMACRHN8p0nqD4k387F11IT487ItZaXQNcEtFCaXoUM7Zx7llGTM64tfxrv6b3 8UL2a0+7E4NBxA==; In-Reply-To: <83jzpv707n.fsf@gnu.org> (message from Eli Zaretskii on Sun, 03 Dec 2023 17:52:12 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:275428 Archived-At: > Cc: 67533@debbugs.gnu.org > Date: Sun, 03 Dec 2023 17:52:12 +0200 > From: Eli Zaretskii > > > From: JD Smith > > Date: Sun, 3 Dec 2023 10:48:20 -0500 > > Cc: 67533@debbugs.gnu.org > > > > > The cumulative patch below should fix all the problems you threw on me > > > till now. > > > > Most excellent, thank you for the sleuthing Eli! Your roll-up patch applies cleanly and fixes all the pixel size related issues in my large complex org-with-latex-preview file. I can induce the same behavior in my original svg-generating code by bumping the default width up to: > > > > (w (+ 142 (* 2 (round (expt (1+ r) 1.25))))) > > > > and it solves it there too. (I’ve updated the gist to do this, and included the final function below, for posterity). > > Thanks, I will install the changes (on master) soon. Now done. Is there anything else to do here, or can we close this bug? Thanks.