From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko 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, 2 Oct 2022 19:26:52 +0800 Message-ID: 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> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000002d377e05ea0b7e31" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7857"; mail-complaints-to="usenet@ciao.gmane.io" Cc: numbchild@gmail.com, emacs-devel@gnu.org, emacs-orgmode@gnu.org To: Eli Zaretskii Original-X-From: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sun Oct 02 13:26:59 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 1oex7b-0001ux-6t for geo-emacs-orgmode@m.gmane-mx.org; Sun, 02 Oct 2022 13:26:59 +0200 Original-Received: from localhost ([::1]:54946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oex7Z-00035q-Oz for geo-emacs-orgmode@m.gmane-mx.org; Sun, 02 Oct 2022 07:26:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43790) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oex6q-00033w-Di; Sun, 02 Oct 2022 07:26:12 -0400 Original-Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]:34615) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oex6m-0002wS-W9; Sun, 02 Oct 2022 07:26:12 -0400 Original-Received: by mail-lf1-x129.google.com with SMTP id j16so13014653lfg.1; Sun, 02 Oct 2022 04:26:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=nvtu4DmTuRY0II39kmtG3JaWES3We8PtIFfJSUhid9Q=; b=Zzo0sKMq4rg+rFmb4YB7kLfVYERT0Vr8QeP3sdcQB5M/bqciA+7cDTUpjQekcHJ14+ WfSBwcHuuaw6lUqORjjj+1qn9LCZV5wh5WaNcYtWVrBNXENJ/e3S6cgdh2FVxz/42EMX 2DweQ0UYJVcmRyxHc6nfCj772cjllbiUaQJBCEmbJrFLokUa/q3s8tpgdIamaVB+Mam0 p4gOEZMcmaVgSGNziCapXc3zmHyatySFSAu5QVxTv6UHBo8gY/7V8OHNfsfcUe8qJUmR xvQ/K6o1CVXUKdDZHs0TDe3lbS1woLulsEV3BSf9YQTH5/HrrKvggpZsD0r7zrGZ8plr yLxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=nvtu4DmTuRY0II39kmtG3JaWES3We8PtIFfJSUhid9Q=; b=P1E1e5owyjX9LVLbRUE/ukQ96bj75vNdGjG7cKhSbYftvS5WEbElDWbLSZfSY5ZMmT zs/W8BjcVkivQq/kqSYDx/DTtvg+NSoMUL8Ma9HnOjImlE8H/IFmuJ3JA/VGIK6iC7Zi T4e8ESNqvuowwUljd5rdUaByrps5uRgTwZ2KfQvuFoIHG8oEjw3t+uh71bgtnNhA3tSX 3SjzT7KMHv1xBGKH186BlAsvf4Ez/AOKTU/lGZ/mO5UyinNx9x4mcnt0goAvetEnBKV5 qfqGQK6G9jAwkpze1y9K+CP+JQ5o9yEAAQ5vB7brjQXw6r1XV989wGoM1PPVS7QBnaDi MfEw== X-Gm-Message-State: ACrzQf1xNDxrQjEfHs1YpoEBl2qd1FYfCxMMPs9tpMBBXlYBU2hcTUjS ETcQDGmeMLKvMuzHC3fjobEtj8YQ/NEFPAkq8lehF00Idg8= X-Google-Smtp-Source: AMsMyM4pw5SgTX7xk7bQz19ptJFU5xKu9nz34+z0E0FS/45MqmMJzCANXHfJoFBQqAKTSuV90bU1RR7vKoHg71nyAOo= X-Received: by 2002:a05:6512:2586:b0:4a0:54f2:772e with SMTP id bf6-20020a056512258600b004a054f2772emr5789395lfb.663.1664709965984; Sun, 02 Oct 2022 04:26:05 -0700 (PDT) In-Reply-To: <83v8p21nni.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=yantar92@gmail.com; helo=mail-lf1-x129.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:149022 gmane.emacs.devel:296597 Archived-At: --0000000000002d377e05ea0b7e31 Content-Type: text/plain; charset="UTF-8" > > This is because of the ":ascent 'center" part, isn't it? > I guess so. The image bottom is below the text baseline and thus the underline cuts through the image. > What would you want Emacs to do instead in this case? > I do understand how Emacs renders what we get here from the perspective of glyph composition. Putting underline over the glyph does make sense in many cases. However, it is clearly not expected in this specific scenario of a bitmap image. I think that it could be useful to allow images to be drawn "on top" of the underlines, cross-lines, etc. Best, Ihor --0000000000002d377e05ea0b7e31 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This is because of the ":ascent 'center" part, isn't it?<= br>
I guess so. The image bottom is below the text baselin= e and thus the underline cuts through the image.
=C2=A0
What would you want Emacs to do instead in this case?
=
I do understand how Emacs renders what we get here from the = perspective of glyph composition. Putting underline over the glyph does mak= e sense in many cases. However, it is clearly not expected in this specific= scenario of a bitmap image.

I think that it could= be useful to allow images to be drawn "on top" of the underlines= , cross-lines, etc.

Best,
Ihor
--0000000000002d377e05ea0b7e31--