From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Fu Yuan Newsgroups: gmane.emacs.help Subject: Re: How much is one em (image size unit)? Date: Sun, 2 Apr 2023 15:27:05 -0700 Message-ID: <056F7BFD-795F-4955-85CD-E7243020DFE8@gmail.com> References: <87h6u0eqj9.fsf@disroot.org> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13875"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , help-gnu-emacs@gnu.org To: Akib Azmain Turja Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 03 00:27:49 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 1pj6Av-0003OM-C5 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 03 Apr 2023 00:27:49 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pj6AL-0004eU-0J; Sun, 02 Apr 2023 18:27:13 -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 1pj6AI-0004dq-OT for help-gnu-emacs@gnu.org; Sun, 02 Apr 2023 18:27:10 -0400 Original-Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pj6AH-0001zY-26; Sun, 02 Apr 2023 18:27:10 -0400 Original-Received: by mail-pj1-x1031.google.com with SMTP id o6-20020a17090a9f8600b0023f32869993so30666629pjp.1; Sun, 02 Apr 2023 15:27:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680474427; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=unHLd91k+uNdLA1loa/BD1j8XGWcTOoOL8iGLe9K1Tc=; b=mR61b0FFfG+t2+5gJexagS5J2278DfAIVT/bePlQa+WgF1TaFVfOElgTxhnJSzYnHJ e/x0hv7RWxw/t8p0oEHsz42uPmmzFJwzcITXKdIk5GN4guDlaPLDAm57fw3PDZdOylaw RZofDipPrhouMBOUMS6puO7A+x6jAjAJUdoQlaU0aWHAqZgUcxE7LT65LaGMBIsFdXys VX1J+ANci/2W/Luo5NmGxeldTKR5RKJhBVDcgSB4J3rECyEQDLzFd4dUztFh3bVIIe/C ILkPtlZyy+CEfEEwR2fjnKPnlUkSiV8JRrRFJ4MqvAFkuNTXPpwvY9m2xRJCmjVhqB6f OiJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680474427; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=unHLd91k+uNdLA1loa/BD1j8XGWcTOoOL8iGLe9K1Tc=; b=UkkJ64+LxGzFhlkbiMtv9m/Z2K1woS5x/Iq3D8Zr0SvpynVpgtUWMMT/dlrrDpzSYd k5I7zufaT2jTIOv0AFZ+bMDyuajDJTqmaA6ZBKnYq+l+PgIJ1CE1mr9L05jwfzvR063d Wtr79x7bDCzv8M8FCLRNo0Hn7birbGbPKCoU8hjMsgQJ8FLImDnTyUD97Y8UIlnTaLjj qoBDIvo9TWp0j50Ammgpfn64KGz8MIAZj0TRj9DK6GyvnZJv3Wz1Vozowaynu972N1+d sIBmpy2CBb4cfTKMSLmynkrLvgoV6sZVhdI2VIQYUBxQ+u01m+3EE/ktHMVGAb79Xb9b iD5w== X-Gm-Message-State: AAQBX9ds9KTKyHxH8Iyb6XqPAMUWi8XeJ/SynbQeEPmelgLI5t+bK+mc QyngiAg7hMsgG7WT6k8beQ0d3Riz5oI= X-Google-Smtp-Source: AKy350akgxih1VbiKUe2thtWmIHOPep9+Xoaqn1JhlFEFh/OJ497feO9JUEylpYBxWYUKUe1R8/KWg== X-Received: by 2002:a17:90a:b10f:b0:23f:e4b7:afb3 with SMTP id z15-20020a17090ab10f00b0023fe4b7afb3mr39210875pjq.9.1680474427303; Sun, 02 Apr 2023 15:27:07 -0700 (PDT) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id c3-20020a17090ad90300b002405499b729sm8266216pjv.38.2023.04.02.15.27.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 02 Apr 2023 15:27:07 -0700 (PDT) In-Reply-To: <87h6u0eqj9.fsf@disroot.org> X-Mailer: iPhone Mail (19G71) Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=casouri@gmail.com; helo=mail-pj1-x1031.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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:143202 Archived-At: > =E5=9C=A8 2023=E5=B9=B44=E6=9C=881=E6=97=A5=EF=BC=8C=E4=B8=8A=E5=8D=885:35= =EF=BC=8CAkib Azmain Turja =E5=86=99=E9=81=93=EF=BC=9A >=20 > =EF=BB=BFEli Zaretskii writes: >=20 >>> From: Akib Azmain Turja >>> Cc: Manuel Giraud >>> Date: Fri, 31 Mar 2023 22:32:49 +0600 >>>=20 >>>> Akib Azmain Turja writes: >>>>=20 >>>>> I'm trying to show an image such that it has same height as the text a= nd >>>>> 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? >>>>=20 >>>> Hi, >>>>=20 >>>> 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. >>=20 >> Maybe this page will help you: >>=20 >> https://learn.microsoft.com/en-us/typography/opentype/spec/ttch01 >>=20 >=20 > Thanks, but I couldn't understand much. Say the line height is X em, > then how can I figure out that X? 1 em equals to the text height. If your 1 em looks smaller than the text hei= ght, something might be wrong. Perhaps post a screenshot of what you get? Yuan=20=