From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#59802: 30.0.50; Checkbox button not rendered Date: Sun, 11 Dec 2022 14:12:09 +0100 Message-ID: <874ju2qe3a.fsf@gmx.net> References: <87v8mshit6.fsf@ledu-giraud.fr> <838rjoendw.fsf@gnu.org> <87r0xgh7c3.fsf@ledu-giraud.fr> <83zgc4crg6.fsf@gnu.org> <87ilisgxbi.fsf@ledu-giraud.fr> <83lenocoge.fsf@gnu.org> <87edtggol3.fsf@ledu-giraud.fr> <83359vd535.fsf@gnu.org> <87cz8s3gq7.fsf@ledu-giraud.fr> <83sfhozreh.fsf@gnu.org> <87ilik8zjs.fsf@gmx.net> <83v8mjweqm.fsf@gnu.org> <87h6y3447l.fsf@gmx.net> <83cz8rw5pq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24499"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: manuel@ledu-giraud.fr, 59802@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 11 14:13:10 2022 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 1p4M8k-00069p-Fg for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 11 Dec 2022 14:13:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4M8d-0005zi-Fl; Sun, 11 Dec 2022 08:13:03 -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 1p4M8c-0005zI-Mn for bug-gnu-emacs@gnu.org; Sun, 11 Dec 2022 08:13:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p4M8c-00046K-Dx for bug-gnu-emacs@gnu.org; Sun, 11 Dec 2022 08:13:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p4M8b-0004JC-Sk for bug-gnu-emacs@gnu.org; Sun, 11 Dec 2022 08:13:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Dec 2022 13:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59802 X-GNU-PR-Package: emacs Original-Received: via spool by 59802-submit@debbugs.gnu.org id=B59802.167076434016555 (code B ref 59802); Sun, 11 Dec 2022 13:13:01 +0000 Original-Received: (at 59802) by debbugs.gnu.org; 11 Dec 2022 13:12:20 +0000 Original-Received: from localhost ([127.0.0.1]:46412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4M7w-0004Ix-4v for submit@debbugs.gnu.org; Sun, 11 Dec 2022 08:12:20 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:55207) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4M7u-0004Iq-Ut for 59802@debbugs.gnu.org; Sun, 11 Dec 2022 08:12:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1670764332; bh=YvKC/K96wJZy1SYb2B12jreq5qhBEzPig6VU7GBFtqU=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=EiP80KZqhl9z8TYEJRAj+ayJk+JJsrf1n2o2KhdF9B7gPSd642/zEk7ebnG0phlGy PrDE/oeE/8Dht7USFAd71iHoCx5sQgpbSa54wf2fFKMv1gFpj7BIvqBSBb9Ed2k5dt X8IEb7+FdWjlAEOil+iDNWBgoUhJ57coM7KZSb5dhk7h7GAIjwgvRrxnoQJFLj/hlL 4Z8S5IONfLEZTCX2xyLd1G/jQwlvRWKrd27mEc4Bf1OLPosNFyBRHYMh59SCANavjr nkjRQ2o+o0H4D+UD0gR307wmktZtT4px63/KHAcH516SFsSzRo7P/jTVHC7Acse4x5 eN0c/4Q4IKz5A== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from strobelfs ([89.246.36.217]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MnaoZ-1ocTU11I5l-00jcjw; Sun, 11 Dec 2022 14:12:12 +0100 In-Reply-To: <83cz8rw5pq.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 10 Dec 2022 19:04:17 +0200") X-Provags-ID: V03:K1:rRDoNAXq0uwS1xdK3IiJSg+2Wlb9y0InWRWIkVhOC5Clt3B2w4n onx9o4sncmjCv61AUmQqkB0WQBPvHboxt8KogRGsp73GE/Eg/uWvNwAgkku0xoPeXJqNduJ Kk5VAWAHisLZD6IzEuNcjSGEN77GrLS4gHei3wlZG4W5QDC084E8mo2ytILJVwLxWXka+4z lCO12GVbR3gBpvxIQJbLA== UI-OutboundReport: notjunk:1;M01:P0:cfxzY/wzQ1w=;8GCYlPVKiVzsfujuroGMcu3y3GD 7Ld8WVOwhaj1cZbgVqNPj49/15/B7ALpmHFVCxp4MOD4qTTiDQZphp3McP4FytfBKk2uL5ZNY db6V4Y64wAPydePOy6aeho//P1kiQClsKJ+TbERVEXmbe6O45eyJkE0nWG7J9dVN5r/NhARnX dVEq2udZF6KVEjlBOFs9U6PwuQ97EIZfTLScFifGbXs2FS3caJYr95tJYI/YP6/vVzZJcUC3u YuvnOdIA3UIDZkrTjuKc2SZ7LCUxCjhEVwFN79L5dIwwaUTAU61eFTQ+1lmDlAAbTJ4CYosko K6ek9TgjWwWohjrjfM/XmV/+Eqje5V2QVHhdZ6RFMJe80n6zJLbl/c+vuE2MuuJoPzjc6NCco fLHa0/qUyVfgZchoM+JyoPWbj1XQ87tkoIFOGkaOv/bW729E2sz7t6itk1eTtM3/DBI2NnZbt od9sCgdU99Xi+6ShDLpxgS/EBMBSFcvyXCKYCWijiFwJoX11HMMM5FXjkQrZsD7hJuhv5ZhIB 6Uwmey7TaByGgXz6KK+ZHhoD63tn0F5OA9l+XyXFFpiC69JQ5vGaWLTHUZlfyhm2sBQGTMocK BUxRjbyfUPj5HHnT/Gcw1c4Fd5GrHI+In0O/A5MO4iBocnsgODyUjuzwEPtcg9abkg0pCC3Tm wDuMxKuRYYkYnVds5rAP5Iar1eFfV0kaKd5DZ1TZdB8mZgPu9iLYAmysJiD03V45kihZ5mfsj HyRREbnrky9APtadGdMVUpjVD3ri6Wt91SEIlvccLc1/CKU/blY1ZTNv49cyCPZh74a59kz5 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:250604 Archived-At: On Sat, 10 Dec 2022 19:04:17 +0200 Eli Zaretskii wrote: >> From: Stephen Berman >> Cc: manuel@ledu-giraud.fr, 59802@debbugs.gnu.org >> Date: Sat, 10 Dec 2022 17:24:14 +0100 [...] >> I create buffer "a" by typing this (with emacs -Q): >> >> C-x b a >> M-: (insert-image-file "path/to/emacs/etc/images/checked.svg") >> C-f >> M-: (insert-image-file "path/to/emacs/etc/images/checked.xpm") >> C-f >> Test >> >> To create buffer "+2" I type `C-x h M-w' in buffer "a", and then type >> `C-x b +2 C-y'. However, this results in only the image checked.svg >> being displayed in "+2", but with point not before but after the image, >> so then I insert the image checked.xpm and the string "Test" as above. >> Then I typed `C-x C-+' twice. I create buffers "+4" and "+6" likewise >> (typing `C-x C-+' four and six times, respectively). >> >> Concerning the line number display, after inserting checked.svg in >> buffer "a" and typing `C-f' the mode line displays "L1". After >> inserting checked.xpm as above, the mode line displays "L7", and after >> typing `C-f T' it displays "L27" and remains like that while and after >> typing "est". After typing `C-y' in buffer "+2" (which displays only >> checked.svg), the mode line displays "L27" and stays like that after >> inserting checked.xpm and typing `C-f'. But as soon as I type "T" the >> mode line displays "L47". (So I was mistaken in saying the line number >> display changes by changing the font size.) > > We are still discussing the problem with misalignment of images, are > we? Because most of what you describe is unrelated to that. (If > those other aspects bother you or surprise you, we can talk about that > as well.) Yes, that was just a parenthetical aside. (And what I observed does surprise me but I haven't encountered this issue in code I've used, so it hasn't bothered me yet. But maybe I'll file a separate bug about this.) > As for the misalignment, I'm guessing that your librsvg is newer than > mine, so it supports scaling the SVG images as you scale text. My > librsvg doesn't support that, and so the SVG image remains aligned > with the XPM one, slightly lower than the baseline of the text (which > could probably controlled by the :ascent property of the image, if > that is a problem). When I visit the SVG image file the image scales without any display problem, so the problem apparently only arises with text scaling. And not just via face-remapping with text-scale-mode: when I evaluate (set-face-attribute 'default nil :height 200) and then insert emacs/etc/images/checked.svg with insert-image-file, the bottom half of the image is truncated like in the "+4" buffer in the screenshot I attached to my first post in this thread. (When the image is displayed via put-text-property, explicitly passing `:ascent center' does correct the initial alignment, but on increasing the font size with `C-x C-+' the image still gets pushed down just like in the screenshot I posted.) Steve Berman