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.orgmode,gmane.emacs.devel Subject: Re: [CLOSED] text-property displayed image has a center-line when the text face has underline attribute Date: Sun, 02 Oct 2022 14:16:17 +0300 Message-ID: <83v8p21nni.fsf@gnu.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38767"; mail-complaints-to="usenet@ciao.gmane.io" Cc: numbchild@gmail.com, emacs-devel@gnu.org, emacs-orgmode@gnu.org To: Ihor Radchenko Original-X-From: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sun Oct 02 13:16:50 2022 Return-path: Envelope-to: geo-emacs-orgmode@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 1oewxm-0009vg-DQ for geo-emacs-orgmode@m.gmane-mx.org; Sun, 02 Oct 2022 13:16:50 +0200 Original-Received: from localhost ([::1]:38284 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oewxk-0006yz-NL for geo-emacs-orgmode@m.gmane-mx.org; Sun, 02 Oct 2022 07:16:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58096) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oewxP-0006yf-Gg; Sun, 02 Oct 2022 07:16:27 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34904) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oewxP-0001Gf-3p; Sun, 02 Oct 2022 07:16:27 -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=3AsmwLIgI2tpW+0CuRzIDQ3Cu1+oIfbgncGxfQFvwKY=; b=M6bZLqRGgJ/k DNq/LgO7l2l8EM8/SggA/CK/frT6rdGFlS+D7i5Ttda55XEJn7Gim0mo0Lm4qLIpPy9nDJn4ahC1o aXVwSIJ2kMkeUo8v7Izxs1I1DQopb1u6B/1tPWiQBYyda3CTrhCrB8C6xYPuyf3pgK3j73gWVXBZa b6x7CICl93pDVKc43HRbyWCroIiKWp8lMafN+pHqmQz0tyYd+a1Qfy0OXW2XUp5JIVymM9v0V+7f7 n5mdBtu+/KamiqD2tJm97+/UERHQT65NH+JNpvkzEwXVLSRHYGXjlS6WQCRYd9bdBdwbybQWdG4MV GUrgSQM6HUSCRHC/YSgIZQ==; Original-Received: from [87.69.77.57] (port=4924 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oewxO-0000y2-Gh; Sun, 02 Oct 2022 07:16:26 -0400 In-Reply-To: (message from Ihor Radchenko on Sun, 2 Oct 2022 18:57:56 +0800) 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: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-orgmode" Xref: news.gmane.io gmane.emacs.orgmode:149021 gmane.emacs.devel:296596 Archived-At: > From: Ihor Radchenko > Date: Sun, 2 Oct 2022 18:57:56 +0800 > Cc: Eli Zaretskii , emacs-devel@gnu.org, emacs-orgmode@gnu.org > > 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?