From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: How much is one em (image size unit)? Date: Fri, 31 Mar 2023 20:57:45 +0300 Message-ID: <83o7o82486.fsf@gnu.org> References: <87y1nddory.fsf@disroot.org> <871ql50yrs.fsf@ledu-giraud.fr> <87sfdkev9q.fsf@disroot.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31052"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 31 19:58:09 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 1piJ0q-0007sn-Us for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 31 Mar 2023 19:58:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1piJ0I-0006mP-1i; Fri, 31 Mar 2023 13:57:34 -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 1piJ0G-0006mH-Lp for help-gnu-emacs@gnu.org; Fri, 31 Mar 2023 13:57:32 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1piJ0G-0007U2-Dv for help-gnu-emacs@gnu.org; Fri, 31 Mar 2023 13:57:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=lb26THg/fQuv6SJkWJNDmWxW4NVCKrx3VQWHopOJYXw=; b=f5LGkdMW8Rq3 BJNWAEA+rcPnHh1gspwbvr+bnISma4zS9nzrwy471e9hX1VaPdF0HPDT4GjXbbgspqpT1J4ycTx+x keIbNAOlShxtYL2w028Gm8wvoTG+ttcV7ok+QCB6l5nmF8nhv0UCO923z6OqScjgaS0DEPtIpeawh hhY6UrwQXsmc6Uvp5FKRBgi84QWat/Nyycz7Az2z7f8gM0iBXuE0LDt0ddegaQp9ZpMduUWS5myPW jqB5N3V1Ln37oJi2Hi2vXqzbZn211/SloYOWrWlkRkrjDWdrxqfk2bB2iwlMYeH8qbHAK3a9wfpCl BegglMzwKL1ht4mVk8KKSw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1piJ0F-000052-Hy for help-gnu-emacs@gnu.org; Fri, 31 Mar 2023 13:57:31 -0400 In-Reply-To: <87sfdkev9q.fsf@disroot.org> (message from Akib Azmain Turja on Fri, 31 Mar 2023 22:32:49 +0600) 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:143185 Archived-At: > From: Akib Azmain Turja > Cc: Manuel Giraud > Date: Fri, 31 Mar 2023 22:32:49 +0600 > > > 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. > > But 1 em is pretty smaller than the default font size. I want to make > the image height and the text height same. Maybe this page will help you: https://learn.microsoft.com/en-us/typography/opentype/spec/ttch01