From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Re: How much is one em (image size unit)? Date: Fri, 31 Mar 2023 16:40:55 +0200 Message-ID: <871ql50yrs.fsf@ledu-giraud.fr> References: <87y1nddory.fsf@disroot.org> Reply-To: Manuel Giraud Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="815"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: help-gnu-emacs To: Akib Azmain Turja Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 31 16:41:41 2023 Return-path: Envelope-to: geh-help-gnu-emacs@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 1piFwi-000AYp-AJ for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 31 Mar 2023 16:41:40 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1piFw7-0006jf-73; Fri, 31 Mar 2023 10:41:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1piFw5-0006jN-0Z for help-gnu-emacs@gnu.org; Fri, 31 Mar 2023 10:41:01 -0400 Original-Received: from ledu-giraud.fr ([51.159.28.247]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1piFw2-0007MP-Cp for help-gnu-emacs@gnu.org; Fri, 31 Mar 2023 10:41:00 -0400 DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=7s460YUl 9/xT5XgRymfDhtaOW4jER1189/VQ/naJxEg=; h=date:references:in-reply-to: subject:cc:to:from; d=ledu-giraud.fr; b=hP4L8ynHZWSEahsSTWi16SmLq3XWI/ QP4zYervI2pQzDHiuAn5JbYsK/IzVFH1508SD6n5qO68dEWE+q83YkCQ== DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=7s460YUl9/xT5XgR ymfDhtaOW4jER1189/VQ/naJxEg=; h=date:references:in-reply-to:subject: cc:to:from; d=ledu-giraud.fr; b=Apxh9NX2/E0zHneq6Enid4IhWMxUD11Ht8zrrH cMGSx6p+17QZyBVFISyLoOfu+RZboEkk3ZLY3Pc/V3GxAJOEIFEnumwgmzugKcb9rtTeVK cTmkwFcABttqN33hSJ0/kBMGFwF5YuYicuQyvUyzmBkxXtRU+yaREj9GCrNl/fRzdDi3GK R8ZwoxztF7kmYUnMvoIjVEN172T1R7CiE5hO6SceNJKKyJ0lI6K3I0tm6AYSzcJesGDkSz hJpENwmG5ZApVCFhMDupEWYW6T7TL4cILq9S0+sWTVQENQpXY5MB/9450qEMZr129rx2mI SClEM3+4Cbz9mZULh6oVEkeg== Original-Received: from computer ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 4a077bc8 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 31 Mar 2023 16:40:56 +0200 (CEST) In-Reply-To: <87y1nddory.fsf@disroot.org> (Akib Azmain Turja's message of "Fri, 31 Mar 2023 19:38:25 +0600") Received-SPF: pass client-ip=51.159.28.247; envelope-from=manuel@ledu-giraud.fr; helo=ledu-giraud.fr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143182 Archived-At: Akib Azmain Turja writes: > I'm trying to show an image such that it has same height as the text and > resizes relatively with text scale. I've achieved this with the 'em' > unit as described in (elisp)Image Descriptors. But 1 em seems to be > pretty smaller than the font size. How to figure out correct value in > em unit such that image and the text has correct height? Hi, FWIW, your example works for me and scales accordingly when I zoom. -- Manuel Giraud