From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Christopher M. Miles" Newsgroups: gmane.emacs.devel,gmane.emacs.orgmode Subject: [SOLVED] Re: [CLOSED] text-property displayed image has a center-line when the text face has underline attribute Date: Wed, 19 Oct 2022 15:33:41 +0800 Message-ID: <45328.6288002104$1666165292@news.gmane.org> References: <6337ac4e.050a0220.c05b9.7747SMTPIN_ADDED_BROKEN@mx.google.com> <87r0zs14ur.fsf@localhost> <63380111.050a0220.592f2.fab7SMTPIN_ADDED_BROKEN@mx.google.com> <87o7uvsuid.fsf@localhost> <63383737.050a0220.63781.8825SMTPIN_ADDED_BROKEN@mx.google.com> <87mtae2718.fsf@localhost> <83a66eaczp.fsf@gnu.org> <63396d3d.050a0220.d98c9.1ea6SMTPIN_ADDED_BROKEN@mx.google.com> <83v8p21nni.fsf@gnu.org> Reply-To: numbchild@gmail.com Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12241"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.10; emacs 29.0.50 Cc: Ihor Radchenko , numbchild@gmail.com, emacs-devel@gnu.org, emacs-orgmode@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 19 09:41:26 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 1ol3he-00032E-7Z for ged-emacs-devel@m.gmane-mx.org; Wed, 19 Oct 2022 09:41:26 +0200 Original-Received: from localhost ([::1]:57102 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ol3hc-0002Sv-F5 for ged-emacs-devel@m.gmane-mx.org; Wed, 19 Oct 2022 03:41:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ol3dZ-0000o2-At; Wed, 19 Oct 2022 03:37:13 -0400 Original-Received: from [39.171.214.39] (port=19780 helo=Mac-mini.local) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ol3dU-0001n6-2J; Wed, 19 Oct 2022 03:37:12 -0400 Original-Received: by Mac-mini.local (Postfix, from userid 501) id 57061692CAA4; Wed, 19 Oct 2022 15:36:57 +0800 (CST) In-reply-to: <83v8p21nni.fsf@gnu.org> X-Host-Lookup-Failed: Reverse DNS lookup failed for 39.171.214.39 (deferred) Received-SPF: softfail client-ip=39.171.214.39; envelope-from=numbchild@gmail.com; helo=Mac-mini.local X-Spam_score_int: 58 X-Spam_score: 5.8 X-Spam_bar: +++++ X-Spam_report: (5.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, MSGID_MULTIPLE_AT=1, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_PBL=3.335, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, SPOOFED_FREEMAIL_NO_RDNS=0.001 autolearn=no autolearn_force=no X-Spam_action: reject 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:298107 gmane.emacs.orgmode:149636 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Eli Zaretskii writes: >> From: Ihor Radchenko >> Date: Sun, 2 Oct 2022 18:57:56 +0800 >> Cc: Eli Zaretskii , emacs-devel@gnu.org, emacs-orgmode@gnu= .org >>=20 >> 1. find an image file in your system >> 2. emacs -Q >> 3. M-: (erase-buffer) >> 4. Insert "askdjaklsdj lasasd" >> 5. M-: (require 'org) >> 6. M-x font-lock-mode >> 7. M-: (put-text-property (point-min) (point-max) 'face 'org-link) >> 8. M-: (put-text-property (point-min) (point-max) 'display (create-image >> "/path/to/image" nil nil :ascent 'center :max-height 512)) > > Thanks. > > This is because of the ":ascent 'center" part, isn't it? > > What would you want Emacs to do instead in this case? I checked out the docstring of `create-image' have not found related info about `:ascent'. Today (which is after some days) I review this problem and searched the `:ascent' in emacs info manual, found this property explanation. I set it to `:ascent 100` solved the problem. Now the baseline is at the bottom of image. Thanks a lot for pointing it out which fixed a big issue of my extension co= de. =2D-=20 [ stardiviner ] I try to make every word tell the meaning that I want to express without mi= sunderstanding. Blog: https://stardiviner.github.io/ IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAmNPqRUACgkQG13xyVro msPyTgf/SSIyqCGjAhIASo0P9lxoairQW8Vk1/sy2oK6Qz+dP7AA9eb5EFZWgRwe SA4cY6jMppxzD5iDQbDhuQ/AkBkCsgOndlk6I7PBBtBYUvCwp+sAkK/FuFtArNVf lKKRfGj1d2rJcgOC0jbbJ2AhhxdkndBOsww6CakSPV8rlW8sxYN+yPCECi85N4+E DeBa5SNR80yNz0juTIy1Se4ovnEZ6xNQtlv/YOhgjloBcQWWlrUF83jsK9qx8y8Y Uc2uC0RAivD/Zvf23hjLqF1tScdUtRck806GZ1egq3BwZj9lS6xGeoIebGCor2QP ynEnFhAeCzg3TTII7//3bUnTqtqJzQ== =SboL -----END PGP SIGNATURE----- --=-=-=--