From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Akib Azmain Turja Newsgroups: gmane.emacs.help Subject: Re: How much is one em (image size unit)? Date: Sat, 01 Apr 2023 00:15:06 +0600 Message-ID: <87h6u0eqj9.fsf@disroot.org> References: <87y1nddory.fsf@disroot.org> <871ql50yrs.fsf@ledu-giraud.fr> <87sfdkev9q.fsf@disroot.org> <83o7o82486.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="976"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 01 14:35:11 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 1piaRr-000AYe-Ah for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 01 Apr 2023 14:35:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1piaRG-0002oL-Mx; Sat, 01 Apr 2023 08:34: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 1piaR7-0002ns-0z for help-gnu-emacs@gnu.org; Sat, 01 Apr 2023 08:34:25 -0400 Original-Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1piaR0-0007sk-ER; Sat, 01 Apr 2023 08:34:20 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id ED85C40199; Sat, 1 Apr 2023 14:34:15 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e0pAYoA2uebN; Sat, 1 Apr 2023 14:34:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1680352454; bh=+9saXK51zhcB+qAAoWZ2NA15eKJJH0+ImP9JfEgspCc=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=EJ/Ubv2XEqN37uCQTMXMmotHxxmRld4gTwSt0moqB6mgAH0gy23fDlHVJDCeNlOaS lKPWA9/JO6C8THNh+HkBxqgVz2mp0M2tNnExiiCNVRpPrM+decO1k/6Io+PJWOLFHL H/eXH5FO/lYBrui5WAa0NCceS/ER+DhpfRPbJ8Be0vYgQsGSZObYerCCsjYUq+B82a KjE7hs2I+yzNAReVupv8AuhPiLwjhUn87atfiATBUh54vZT5/6UPgOyurb/pXLLkgF XK5PnXNTiyAmMFKRolm+qgvtxh8rsYtgUKJyIMt/afJVtaOZTflByBTFkMx/RDVw3E XaShtmr6wgTyA== In-Reply-To: <83o7o82486.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 31 Mar 2023 20:57:45 +0300") Received-SPF: pass client-ip=178.21.23.139; envelope-from=akib@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_12_24=1.049, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:143186 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Eli Zaretskii writes: >> From: Akib Azmain Turja >> Cc: Manuel Giraud >> Date: Fri, 31 Mar 2023 22:32:49 +0600 >>=20 >> > 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. >>=20 >> 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 > Thanks, but I couldn't understand much. Say the line height is X em, then how can I figure out that X? =2D-=20 Akib Azmain Turja, GPG key: 70018CE5819F17A3BBA666AFE74F0EFA922AE7F5 Fediverse: akib@hostux.social Codeberg: akib emailselfdefense.fsf.org | "Nothing can be secure without encryption." --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmQnIysACgkQVTX89U2I YWvlMRAAurUIomiATGe+M5OS+HrwCiE2GdKbrtWXrmjuo9C7YyonctJDTDDjMV8X m4ezr1pDpC92zzagfdUzAuhDq+6kglx0+MWXcnvDD6isy0MwfaSW3DBSev4Z4Kq1 bjySr9flNMnZRvZMADykMvCBLXTksE7yiQvnQDTSjH4a2gU/rZN48SNP5GK+HmdB 2uBXaWtJJRHMYzDouEAYmN+2CGDPDzMrbJpe4AZNgEu/5TqsyV3/NM8fXToVpjax yp31EbliPlOUPY871JTW/E6Gn9cKBcCk3zh/PFHGGqPRq5px3bBKCTVCYJvbe6A0 6VCvrdTJeCq/278pP9hE5DurqhekVMCcgKvFqWZ/2v9eZ2iMWcpavWwPAOXTQ7vM oxULE3VqaaqoJCSC/m9hZ/CTmk7av1ucEu0DdCpFE3aezdH45OofWvbkbuX14C4y zApKC45TNIz2u7fUQw6FaDRJA3iHoVicJpYAh/dEFz4bV0bzKa0V1Ce26jF5MEI+ QsB+EHke0iJ/Nj13PhsHnub36KJERbezbURYVSa9o+TfP3qFgem4A/7A1o4M4qqw DJBXNlLQ/6ASaAtu+ub504zaIjndmhIsMBN9Dqbk5HZqhdI7ALjLLMKyOwWDAt+8 fEQBGOpf/FBr6zdNgLUCopmmh1GqXAx3sW22EEJNSM9LyuMIuL4= =www+ -----END PGP SIGNATURE----- --=-=-=--