all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Fu Yuan <casouri@gmail.com>
To: Akib Azmain Turja <akib@disroot.org>
Cc: Eli Zaretskii <eliz@gnu.org>, help-gnu-emacs@gnu.org
Subject: Re: How much is one em (image size unit)?
Date: Sun, 2 Apr 2023 15:27:05 -0700	[thread overview]
Message-ID: <056F7BFD-795F-4955-85CD-E7243020DFE8@gmail.com> (raw)
In-Reply-To: <87h6u0eqj9.fsf@disroot.org>


> 在 2023年4月1日,上午5:35,Akib Azmain Turja <akib@disroot.org> 写道:
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
>>> From: Akib Azmain Turja <akib@disroot.org>
>>> Cc: Manuel Giraud <manuel@ledu-giraud.fr>
>>> Date: Fri, 31 Mar 2023 22:32:49 +0600
>>> 
>>>> Akib Azmain Turja <akib@disroot.org> 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
>> 
> 
> 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 height, something might be wrong. Perhaps post a screenshot of what you get?

Yuan 


  parent reply	other threads:[~2023-04-02 22:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-31 13:38 How much is one em (image size unit)? Akib Azmain Turja
2023-03-31 14:40 ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-03-31 16:32   ` Akib Azmain Turja
2023-03-31 17:36     ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-03-31 17:57     ` Eli Zaretskii
2023-03-31 18:15       ` Akib Azmain Turja
2023-04-01 12:59         ` Eli Zaretskii
2023-04-02 22:27         ` Fu Yuan [this message]
2023-04-04  9:41           ` Akib Azmain Turja
2023-04-04 13:51             ` [External] : " Drew Adams
2023-04-04 18:13               ` Akib Azmain Turja
2023-04-04 18:46                 ` Drew Adams
2023-04-05 11:52               ` Michael Heerdegen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=056F7BFD-795F-4955-85CD-E7243020DFE8@gmail.com \
    --to=casouri@gmail.com \
    --cc=akib@disroot.org \
    --cc=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.