From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.devel Subject: Re: "Harmonizing" the :height attribute for multiple faces in the same string? Date: Wed, 09 Sep 2020 10:50:12 +0200 Organization: GNU Message-ID: <87ft7rl4fv.fsf@gnu.org> References: <87r1rcut1o.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10717"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 09 10:51:00 2020 Return-path: Envelope-to: ged-emacs-devel@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 1kFvoi-0002gQ-Rk for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Sep 2020 10:51:00 +0200 Original-Received: from localhost ([::1]:58426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFvoh-00049m-Tm for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Sep 2020 04:50:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFvo0-00035Y-1r for emacs-devel@gnu.org; Wed, 09 Sep 2020 04:50:16 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58242) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFvnz-0000P7-LB; Wed, 09 Sep 2020 04:50:15 -0400 Original-Received: from [2a01:e35:2fe1:f780:c5e2:3782:b02e:7710] (port=45666 helo=guerry) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1kFvny-0005cO-5Z; Wed, 09 Sep 2020 04:50:14 -0400 Original-Received: by guerry (Postfix, from userid 1000) id 1A6E11A60D39; Wed, 9 Sep 2020 10:50:12 +0200 (CEST) In-Reply-To: (Stefan Monnier's message of "Tue, 08 Sep 2020 15:11:19 -0400") X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:254857 Archived-At: Hi Stefan, Stefan Monnier writes: >> given a string combining various substrings each with a different >> face, each face with a different :height attribute: how can I set >> :height to the same value for all faces in this string, keeping >> the faces (and their attributes) distincts ? > > How 'bout `add-face-text-property` with a face that specifies the > :height? I ended up using such a solution, thanks a lot for putting me on the right tracks! -- Bastien