From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 8BOBFo11OWNvgAEAbAwnHQ (envelope-from ) for ; Sun, 02 Oct 2022 13:27:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id +HhvFY11OWOHbgAAG6o9tA (envelope-from ) for ; Sun, 02 Oct 2022 13:27:09 +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 2ACC843464 for ; Sun, 2 Oct 2022 13:27:09 +0200 (CEST) Received: from localhost ([::1]:54946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oex7k-00035q-9X for larch@yhetil.org; Sun, 02 Oct 2022 07:27:08 -0400 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 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 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) MIME-Version: 1.0 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> In-Reply-To: <83v8p21nni.fsf@gnu.org> From: Ihor Radchenko Date: Sun, 2 Oct 2022 19:26:52 +0800 Message-ID: Subject: Re: [CLOSED] text-property displayed image has a center-line when the text face has underline attribute To: Eli Zaretskii Cc: numbchild@gmail.com, emacs-devel@gnu.org, emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="0000000000002d377e05ea0b7e31" 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+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=1664710029; h=from:from:sender:sender: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:dkim-signature; bh=nvtu4DmTuRY0II39kmtG3JaWES3We8PtIFfJSUhid9Q=; b=XI3rTMyOfXbX1+BAnyfSwI+mRKimeoqBPm/sbT8LzckYMDEClaMvAvNAjcssgXx43Ez7Ob pEZX+Oic5CiOIXW8aZqpfWY3Hy5eJ4PUszGJbWdPjmS47HJOlKBHkEyPQWEqgh28gxKH2p 0+cE1HLZWbXJ0976QcsjW97nquEWpoYGSxy4voyoSjsc+MmmMWQE8U8SkUlxtV227ImzOw 5W1Oj7+YateXIfXCnsh7QxsbgPBADg4txGFKuRmfcRywMvmd5GgGCxdIVhiEOgyERAnYXJ Zk9CQT1EBYva4pgAJaRHsEylr+6fNFPXv7KnEMudy5Er0STOrVCqqZzSqCzJdg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664710029; a=rsa-sha256; cv=none; b=dRCeBwe0iRWwdChGipxQETVD3BjUyV7t/GAjFXkJqHFVdE9XmnOUhSSJq+3nc4PyJqWXyg 7bjkKMsHVfBRMzLrTbdBLYWXBuE0IXIhspk3v9HqVnb3JuuOch9k/DKU7qACwKiKAuxa+z aml8IeQFB4M3/3uMRXrCuewJ+/kRKvYpejg9VuB1SiIunMn3ExnzO0tCKtjV2+nzg55M7X dHN5SuwbiGBuAsQFecwefJ7MiT03eEiA5XhYwOdBC/X5Z0D4DydM7+YhB5T2mblXyDUgfN NLQ88oXeBGHe+5gpDmyE+XUBzTLmx/3JgFdyfWTBZUakHylDIRqe2Tz2kG0Zrw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Zzo0sKMq; dmarc=pass (policy=none) header.from=gmail.com; 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: -6.94 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Zzo0sKMq; dmarc=pass (policy=none) header.from=gmail.com; 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: 2ACC843464 X-Spam-Score: -6.94 X-Migadu-Scanner: scn0.migadu.com X-TUID: GeQtPqULdqwo --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--