~protesilaos/general-issues

7 2

Iosevka Comfy not tall enough for accents?

Details
Message ID
<CMG66XYLH7MO.2T0058JIS1343@bisio>
DKIM signature
pass
Download raw message
Hi! I'm enjoying Iosevka Comfy since it is a real improvement on my eyes wrt the standard Iosevka. However, as it can be seen in this image [0], there seems to be a problem in displaying a capital A with a tilde: À or Á. The tilde shifts the letter down, which is weird. I'm seeing this effect in Kitty terminal, but apparently not in Emacs. I tried increasing the line height and if I make it 120% it works ok, but I loose the vertical compactness. Is there anything else I can try? Is this a design decision?

Thanks for all the work and thank you for sharing it.


[0] https://img.yoitsu.moe/bc/2c9348716a4babebaecfe0e3ba25d5adba6e3d.jpg
Details
Message ID
<87pmgm25qm.fsf@protesilaos.com>
In-Reply-To
<CMG66XYLH7MO.2T0058JIS1343@bisio> (view parent)
DKIM signature
pass
Download raw message
> From: "inwit" <inwit@sindominio.net>
> Date: Fri, 26 Aug 2022 20:26:01 +0200
>
> Hi! I'm enjoying Iosevka Comfy since it is a real improvement on my
> eyes wrt the standard Iosevka. However, as it can be seen in this
> image [0], there seems to be a problem in displaying a capital A with
> a tilde: À or Á. The tilde shifts the letter down, which is weird. I'm
> seeing this effect in Kitty terminal, but apparently not in Emacs. I
> tried increasing the line height and if I make it 120% it works ok,
> but I loose the vertical compactness. Is there anything else I can
> try? Is this a design decision?

I confirm that it works for me in Emacs.  I also tried it in GNOME
console and it works as well.  See attached screenshots.

It definitely is not a design decision.  There is no way to affect a
specific application from the font.  Not that I know of, anyway.

Maybe this is a Kitty problem in general?  Does Kitty do the right thing
with regular Iosevka?

But yeah, the compactness is part of the deal with Iosevka Comfy.
Hopefully it is not the cause of the trouble.

> Thanks for all the work and thank you for sharing it.

You are welcome!

All the best,
Protesilaos (or simply "Prot")

-- 
Protesilaos Stavrou
https://protesilaos.com
Details
Message ID
<CMGQA0HFNGZS.3RRAEDQPCP2ZY@bisio>
In-Reply-To
<87pmgm25qm.fsf@protesilaos.com> (view parent)
DKIM signature
pass
Download raw message
On Fri Aug 26, 2022 at 8:56 PM CEST, Protesilaos Stavrou wrote:
> Maybe this is a Kitty problem in general?  Does Kitty do the right thing with
> regular Iosevka?
I found some bug reports in Kitty [0] showing how this also affects other
(patched) fonts, but apparently there are several interpretations as to who
might be the culprit. According to some, it could be a problem with the font
not properly reporting its metrics.


[0] https://github.com/kovidgoyal/kitty/issues/2985
Details
Message ID
<87sfli6jdw.fsf@protesilaos.com>
In-Reply-To
<CMGQA0HFNGZS.3RRAEDQPCP2ZY@bisio> (view parent)
DKIM signature
pass
Download raw message
> From: "inwit" <inwit@sindominio.net>
> Date: Sat, 27 Aug 2022 12:10:24 +0200
>
> On Fri Aug 26, 2022 at 8:56 PM CEST, Protesilaos Stavrou wrote:
>> Maybe this is a Kitty problem in general?  Does Kitty do the right thing with
>> regular Iosevka?
> I found some bug reports in Kitty [0] showing how this also affects other
> (patched) fonts, but apparently there are several interpretations as to who
> might be the culprit. According to some, it could be a problem with the font
> not properly reporting its metrics.
>
>
> [0] https://github.com/kovidgoyal/kitty/issues/2985

Assuming that interpretation is correct, should we expect that all other
programs do something extra than what Kitty does?

The metrics in Iosevka Comfy apply to all glyphs.  There is no special
setting for whether they are accented or not.  Put differently, if this
is a font problem, it is either due to standard Iosevka or the
configuration it exposes.

Can you reproduce this bug with Iosevka?

-- 
Protesilaos Stavrou
https://protesilaos.com
Details
Message ID
<CMGXJIYSMWAA.12VQJ1E9A1LSY@bisio>
In-Reply-To
<87sfli6jdw.fsf@protesilaos.com> (view parent)
DKIM signature
pass
Download raw message
On Sat Aug 27, 2022 at 1:00 PM CEST, Protesilaos Stavrou wrote:
> Assuming that interpretation is correct, should we expect that all
> other programs do something extra than what Kitty does?
Good point. I have not a clue.

> The metrics in Iosevka Comfy apply to all glyphs.  There is no
> special setting for whether they are accented or not.  Put
> differently, if this is a font problem, it is either due to
> standard Iosevka or the configuration it exposes.
>
> Can you reproduce this bug with Iosevka?
Nop. I was using Iosevka Fixed Curly before, and never saw that
effect. I've now tried with Iosevka Comfy Fixed, in case the "fixed"
part was relevant, but the problem persists.

Maybe I have to change my terminal emulator...
Details
Message ID
<87zgfp13yb.fsf@protesilaos.com>
In-Reply-To
<CMGXJIYSMWAA.12VQJ1E9A1LSY@bisio> (view parent)
DKIM signature
pass
Download raw message
> From: "inwit" <inwit@sindominio.net>
> Date: Sat, 27 Aug 2022 17:51:57 +0200
>
> On Sat Aug 27, 2022 at 1:00 PM CEST, Protesilaos Stavrou wrote:
>> Assuming that interpretation is correct, should we expect that all
>> other programs do something extra than what Kitty does?
> Good point. I have not a clue.

It is curious why this happens in Kitty but not in GNOME console or
Emacs.  I will try with other terminal emulators as well.

Though I read the bug reports you sent and it seems that this also
depends on the monitor's pixel density and the size of the font.

About the font size, in particular, I note this in the Iosevka Comfy
README:

    Optimal small point sizes for the author are: 8, 10, 11, 13.  While
    "false friends" which increase the height of characters without actually
    adjusting the line width and height are: 10.5, 12, 13.5.  We call them
    "false friends" because while they appear to have an effect, they do not
    actually increase the size of the font consistently: they break
    expectations and make the overall appearance feel more vertically
    compact than it should be.

Notice that those sizes are tested with Emacs on my regular DPI monitor.
I have observed that the height Emacs uses may not always be the same
you see in another app.  Could it then be that you are defaulting to one
of those "false friends" and if you tweak the size a bit you will get
good results?

[ This is not specific to Iosevka Comfy.  It happens with all fonts.  I
  can explain it further, if you want. ]

>> The metrics in Iosevka Comfy apply to all glyphs.  There is no
>> special setting for whether they are accented or not.  Put
>> differently, if this is a font problem, it is either due to
>> standard Iosevka or the configuration it exposes.
>>
>> Can you reproduce this bug with Iosevka?
> Nop. I was using Iosevka Fixed Curly before, and never saw that
> effect. I've now tried with Iosevka Comfy Fixed, in case the "fixed"
> part was relevant, but the problem persists.

It could be the adjustments I made to the height.  Though the problem
would then be universal and not limited to Kitty.  I thus suspect that
Kitty has a slight difference in font size relative to Emacs and it is
giving you a "false friend".  If you tweak it a bit, it might work.

By the same token, Emacs will exhibit the problem if you tinker with the
height to get that "false friend" result.

> Maybe I have to change my terminal emulator...

Depends on your needs.  I only use Emacs and its shells.  I keep a
terminal emulator around "just in case", but I never need it.

-- 
Protesilaos Stavrou
https://protesilaos.com
Details
Message ID
<CMHLEFVHDV68.XBY26XT6UCLM@bisio>
In-Reply-To
<87zgfp13yb.fsf@protesilaos.com> (view parent)
DKIM signature
pass
Download raw message
On Sun Aug 28, 2022 at 4:45 AM CEST, Protesilaos Stavrou wrote:
> It is curious why this happens in Kitty but not in GNOME console or Emacs.  I
> will try with other terminal emulators as well.
I've tried with xfce-terminal and I can't reproduce it. Á and A are just
looking fine (they both start at the same base line).

> Though I read the bug reports you sent and it seems that this also depends on
> the monitor's pixel density and the size of the font.
>
> About the font size, in particular, I note this in the Iosevka Comfy README:
> (...)
Yeah, I got that and thus did all my testing with point size 13.

> Notice that those sizes are tested with Emacs on my regular DPI monitor.  I
> have observed that the height Emacs uses may not always be the same you see
> in another app.  Could it then be that you are defaulting to one of those
> "false friends" and if you tweak the size a bit you will get good results?
In Emacs (regular DPI monitor too), I use point size 13. And I can't reproduce
the effect.

> [ This is not specific to Iosevka Comfy.  It happens with all fonts.  I can
> explain it further, if you want. ]
Thanks, Prot. I feel that I'm already stealing too much time from you.

> It could be the adjustments I made to the height.  Though the problem would
> then be universal and not limited to Kitty.  I thus suspect that Kitty has a
> slight difference in font size relative to Emacs and it is giving you a
> "false friend".  If you tweak it a bit, it might work.
I've tried with 13.5 and other "false friends". I get the same thing. 

> By the same token, Emacs will exhibit the problem if you tinker with the
> height to get that "false friend" result.
Couldn't reproduce it, sorry.

> > Maybe I have to change my terminal emulator...
>
> Depends on your needs.  I only use Emacs and its shells.  I keep a terminal
> emulator around "just in case", but I never need it.
Yeah, I'm afraid I'm too used to having a terminal emulator around.

In any case, thanks again for all your work and for the time you're spending
looking into this. :)
Details
Message ID
<87o7w4iql2.fsf@protesilaos.com>
In-Reply-To
<CMHLEFVHDV68.XBY26XT6UCLM@bisio> (view parent)
DKIM signature
pass
Download raw message
> From: "inwit" <inwit@sindominio.net>
> Date: Sun, 28 Aug 2022 12:33:46 +0200
>

> [... 40 lines elided]

> In any case, thanks again for all your work and for the time you're spending
> looking into this. :)

You are welcome!  If you have any update, please let me know.  Perhaps
we can experiment with minute adjustments to Iosevka Comfy's proportions
and see if they work without negatively impacting other workflows.

-- 
Protesilaos Stavrou
https://protesilaos.com
Reply to thread Export thread (mbox)