From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: ynyaaa@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#25824: 25.1; bugs about display specfications Date: Thu, 23 Feb 2017 11:53:16 +0900 Message-ID: <87y3wxfwir.fsf@gmail.com> References: <87poicrxc9.fsf@gmail.com> <83h93no365.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1487818460 29564 195.159.176.226 (23 Feb 2017 02:54:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 23 Feb 2017 02:54:20 +0000 (UTC) Cc: 25824@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 23 03:54:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgjXj-0006M0-Ls for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Feb 2017 03:54:07 +0100 Original-Received: from localhost ([::1]:56127 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgjXp-0007UF-Cd for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Feb 2017 21:54:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgjXh-0007U7-9D for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2017 21:54:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgjXe-0002Bq-61 for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2017 21:54:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53600) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cgjXe-0002Bm-2s for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2017 21:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cgjXd-0004Pf-SZ for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2017 21:54:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87poicrxc9.fsf@gmail.com> Resent-From: ynyaaa@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Feb 2017 02:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25824 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25824-submit@debbugs.gnu.org id=B25824.148781840216909 (code B ref 25824); Thu, 23 Feb 2017 02:54:01 +0000 Original-Received: (at 25824) by debbugs.gnu.org; 23 Feb 2017 02:53:22 +0000 Original-Received: from localhost ([127.0.0.1]:51799 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgjX0-0004Of-Gr for submit@debbugs.gnu.org; Wed, 22 Feb 2017 21:53:22 -0500 Original-Received: from mail-pg0-f43.google.com ([74.125.83.43]:33466) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgjWz-0004OT-Ba for 25824@debbugs.gnu.org; Wed, 22 Feb 2017 21:53:21 -0500 Original-Received: by mail-pg0-f43.google.com with SMTP id z128so8945542pgb.0 for <25824@debbugs.gnu.org>; Wed, 22 Feb 2017 18:53:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:message-id:mime-version; bh=IkJEP/Tp55BI57kUEFotYtDl+/T/oQDPKHRvxMo+i30=; b=jr2aZu2rzDd+gH8+odQBGPWNbn/3pISraEQNTFkdVoUmhzRCGpZuRRfKizNmYsUuiz l6hUAG4cjSbpE9jvfOoLyouLSrKXQtrqUd4DA2Hx0hJCVMDwBXG1YD4e8qzHGjmPhUZm TI8wiWLsb3UWigSy06VnQhvmP2KsV30VTc5s/v+2xgdnwuFms1wojAcH7nZ4EIbFcarO T93veDChlrirgIFQozO3kWmQyAQ7CLmDik/Se5npQBDtNXwRwpBcXLfjT7vydIwsaMr+ z93iZyf6wfmzGyG3k4AkoF7h0XL2sdwbMZ6fDb1XNDPMpqH+YIiwkZ2oEosBm9QK0x2r S7qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:message-id :mime-version; bh=IkJEP/Tp55BI57kUEFotYtDl+/T/oQDPKHRvxMo+i30=; b=pT7R28FCiqEbtKJtUjZHNvzLYZz0PVN8rFLXYav/2mrjp92/+HfH6eT5NxqoxNZo3C 9j0UMhkgWdkqt6MwYwUpBFFLs519Gvk+5J4/IxvdseLVF+MNFmoTwRXihHqlMJYHz2cN kzcgkj7mKXo4TLd6ISkL6TDT5dAmFG1ltEG2fHqcXeGUX3V0S0D/FJIC5pKGeAwV1omf JRjB3K+4gwx2pG1cKAFLV+EcODOT3Rqq1ONHRzMJL9dMbpmV6gU+1Ar49T2a7sVGeXO3 U+bGr0Nc85KIOFF1i+GUxgXxt+M+6AobepliXRP32/Gj1uxLnFJh7VaW5CE8vsS70KEB jMZA== X-Gm-Message-State: AMke39lSZW9pgTm6O2V75oLz8YoN5HSHnaVkkp2fLkUCsG5zW6G1bSEvuWRt0p4QLSuORQ== X-Received: by 10.98.112.134 with SMTP id l128mr43384021pfc.81.1487818395310; Wed, 22 Feb 2017 18:53:15 -0800 (PST) Original-Received: from pnut-PC (east24-p58.eaccess.hi-ho.ne.jp. [218.42.167.59]) by smtp.gmail.com with ESMTPSA id m3sm5983331pfc.66.2017.02.22.18.53.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 22 Feb 2017 18:53:14 -0800 (PST) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:129675 Archived-At: Eli Zaretskii writes: > Display > string and 'raise'/'heaight' specs don't make sense together in the > same display spec. The height of the replacing text can be controlled by its face. Is there any chance to 'raise' the replacing text? > The space is needed to accommodate the enlarged X on the same screen > line. Emacs display engine doesn't require that all the glyphs on a > line be of the same size, but it does require them to have the same > baseline (the display geometry is that of a canvas). I don't understand the relation between the space and the baseline. I want to display large text centered vertically. But there is a blank area over the large text. I expect line-pixel-height of a line with 5 times larger text is 5 times larger than a normal line. Practically, if the large text is 'raise'd negative, line-pixel-height is 5 times plus 'raise'd pixels larger. (with some computational error) ;; normal line (line-pixel-height) =>22 ;; large text without raise specification (progn (insert "normal" (propertize "LARGE" 'display '((height 5)))) (beginning-of-line) (line-pixel-height)) =>107 ;; cap height is 14 and line height is 22 ;; 'raise' -2 * cap height pixels (progn (insert "normal" (propertize "LARGE" 'display '((raise -1.2727) (height 5)))) (beginning-of-line) (line-pixel-height)) =>134 By the way, if the baseline height is same, I think consecutive underlines should be displayed as one straight line. The form below shows three underlines with different height. (insert (propertize "X" 'face '(:underline t)) (propertize "X" 'face '(:underline t) 'display '((raise -1))) (propertize "X" 'face '(:underline t) 'display '((raise 1)))) As for overlines, they are displayed as one straight line. (insert (propertize "X" 'face '(:overline t)) (propertize "X" 'face '(:overline t) 'display '((raise -1))) (propertize "X" 'face '(:overline t) 'display '((raise 1))))