From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aK0UEsKpT2PgaQAAbAwnHQ (envelope-from ) for ; Wed, 19 Oct 2022 09:39:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id AP46EsKpT2P+vwAA9RJhRA (envelope-from ) for ; Wed, 19 Oct 2022 09:39:46 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0328E3AEF4 for ; Wed, 19 Oct 2022 09:39:46 +0200 (CEST) Received: from localhost ([::1]:49676 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ol3g1-0000p8-1k for larch@yhetil.org; Wed, 19 Oct 2022 03:39:45 -0400 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 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 Received: by Mac-mini.local (Postfix, from userid 501) id 57061692CAA4; Wed, 19 Oct 2022 15:36:57 +0800 (CST) 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> User-agent: mu4e 1.8.10; emacs 29.0.50 From: "Christopher M. Miles" To: Eli Zaretskii Cc: Ihor Radchenko , numbchild@gmail.com, emacs-devel@gnu.org, emacs-orgmode@gnu.org 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 In-reply-to: <83v8p21nni.fsf@gnu.org> Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" 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-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: numbchild@gmail.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666165186; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=m+nPsvSfjgU4rQbpCauHZXVvYDz5HLNBhWlEtqJcf8M=; b=WeGGVcXcfGn7SRXCGz01UjrWag/WzQfHhsNvcJx6A/uZuRNUUQS44mg7+TvxPbq3u/By68 Ooi/EEKI548ml3eeyaskiX2Io9IxzJupUO9y6W4aetNuyBTNZSC0WCDZ3K/hawr4N3v0o4 bA9BjhBf6ViIWsCAy2qwknuwQOUgfH9bf5jdQ3S3bFT8nyIBeF42WU8qKfJmrUodOgHHde R/bXJJOKf0GKmx/CsVnHt2K4BuHOkZtvNIOOYrIBCfC9Buoc6G0OywSaSPHTmQzx0cHTgU 8Sq6L1E8u6s6qWRfqABy7ETz7GwJbf9+E7rDap8NX5xGWe0wW136OluImpTotA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666165186; a=rsa-sha256; cv=none; b=rGDNXWWwTE0qXjOHjKgdh8JyefYy6PgdKPBb95CLihGwqLeOw1nwuCToBgDaXCU68FzEXE 4yR+e2Ok23uk48UZuQoqBf7ZXdZ8K7wfbBEcxnQ+z50p1WGQG82PRJOMnyt5Yc+NiRPrAj RtX0hBkRYGlCbH0EGt5TC5rHYa/heH1Qk9T9qUyK5W2ccbCfBpKI+om+Tnj6R1A7pHADGI oqml2hknqqVOq4qlu5EWsyuLG+yHSV/GaYsX6m03YSEFXJvthwwdf7QF2R0zQ56YULRIzy p7rZZALGDuEW6zRZVEqHDLOMvW36TlIfkN4GJBbbyuFu7fFsvTVHzuXpQPxiBQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 3.17 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0328E3AEF4 X-Spam-Score: 3.17 X-Migadu-Scanner: scn1.migadu.com X-TUID: U3/Oko1uY4c3 --=-=-= 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----- --=-=-=--