unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Font display size is incorrect
@ 2021-06-13  5:47 Anand Tamariya
  2021-06-13  8:17 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Anand Tamariya @ 2021-06-13  5:47 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 370 bytes --]

In the screenshot
(https://lifeofpenguin.blogspot.com/2021/06/basic-wysiwyg-printing-in-gnu-emacs.html),
<https://lifeofpenguin.blogspot.com/2021/06/basic-wysiwyg-printing-in-gnu-emacs.html>:height
property is set as the number in parentheses. The text display size is
incorrect in some cases. Following pairs are shown as same size: 120-130,
170-180, 210-220, 230-240.

[-- Attachment #2: Type: text/html, Size: 455 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Font display size is incorrect
  2021-06-13  5:47 Font display size is incorrect Anand Tamariya
@ 2021-06-13  8:17 ` Eli Zaretskii
  2021-06-13 13:45   ` Anand Tamariya
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2021-06-13  8:17 UTC (permalink / raw)
  To: Anand Tamariya; +Cc: emacs-devel

> From: Anand Tamariya <atamariya@gmail.com>
> Date: Sun, 13 Jun 2021 11:17:44 +0530
> 
> In the screenshot (https://lifeofpenguin.blogspot.com/2021/06/basic-wysiwyg-printing-in-gnu-emacs.html), 
> :height property is set as the number in parentheses. The text display size is incorrect in some cases.
> Following pairs are shown as same size: 120-130, 170-180, 210-220, 230-240.

If you look closely at the produced display, you will see that the
heights of the above pairs of lines are indeed different; it's the
_width_ that is identical.  So it sounds like you expected the width
to change together with the height, but I'm not sure I understand why
such an assumption is justified.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Font display size is incorrect
  2021-06-13  8:17 ` Eli Zaretskii
@ 2021-06-13 13:45   ` Anand Tamariya
  2021-06-13 14:04     ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Anand Tamariya @ 2021-06-13 13:45 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1066 bytes --]

On Sun, Jun 13, 2021 at 1:47 PM Eli Zaretskii <eliz@gnu.org> wrote:

> > From: Anand Tamariya <atamariya@gmail.com>
> > Date: Sun, 13 Jun 2021 11:17:44 +0530
> >
> > In the screenshot (
> https://lifeofpenguin.blogspot.com/2021/06/basic-wysiwyg-printing-in-gnu-emacs.html),
>
> > :height property is set as the number in parentheses. The text display
> size is incorrect in some cases.
> > Following pairs are shown as same size: 120-130, 170-180, 210-220,
> 230-240.
>
> If you look closely at the produced display, you will see that the
> heights of the above pairs of lines are indeed different; it's the
> _width_ that is identical.  So it sounds like you expected the width
> to change together with the height, but I'm not sure I understand why
> such an assumption is justified.
>
If the fonts are only vertically stretched for their heights, all the lines
should be the same width. This is not the case. What's the algorithm here?
Is there a recommended way to draw 17pt and 18pt text so that they appear
distinct proportionally as they would in a hardcopy?

[-- Attachment #2: Type: text/html, Size: 1640 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Font display size is incorrect
  2021-06-13 13:45   ` Anand Tamariya
@ 2021-06-13 14:04     ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2021-06-13 14:04 UTC (permalink / raw)
  To: Anand Tamariya; +Cc: emacs-devel

> From: Anand Tamariya <atamariya@gmail.com>
> Date: Sun, 13 Jun 2021 19:15:02 +0530
> Cc: emacs-devel@gnu.org
> 
>  If you look closely at the produced display, you will see that the
>  heights of the above pairs of lines are indeed different; it's the
>  _width_ that is identical.  So it sounds like you expected the width
>  to change together with the height, but I'm not sure I understand why
>  such an assumption is justified.
> 
> If the fonts are only vertically stretched for their heights, all the lines should be the same width. This is not the
> case. What's the algorithm here?

I don't think (but am not sure) the algorithm for choosing the width
for specific height is in Emacs.  I think it's in the font back-end,
like Fontconfig.

> Is there a recommended way to draw 17pt and 18pt text so that they appear distinct proportionally as they
> would in a hardcopy?

Sorry, I don't think I understand the question (and am not an expert
on font-related issues anyway).



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-06-13 14:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-13  5:47 Font display size is incorrect Anand Tamariya
2021-06-13  8:17 ` Eli Zaretskii
2021-06-13 13:45   ` Anand Tamariya
2021-06-13 14:04     ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).