ryanoasis/nerd-fonts

After setting the line spacing, the icon height does not adjust

A-caibird opened this issue · 2 comments

Requirements

  • I have searched the issues for my issue and found nothing related or helpful
  • I have searched the FAQ for help
  • I have checked the Wiki for help

Experienced Behavior

I'm using alacritty on macOS15 and after setting line spacing in the profile, the icon doesn't show up
When I set the line spacing, some of the font icons became larger, but some of them didn't

Expected Behavior

I want all the icons to be scaled up, up, down, left and right

Example Symbols or Text

[font]
normal = { family = "MesloLGS NF", style = "Regular" }
bold = {family = "MesloLGS NF", style = "Bold" }
size = 12.00
offset = { x = 0, y = 10 }

Font Used

[font] normal = { family = "MesloLGS NF", style = "Regular" } bold = {family = "MesloLGS NF", style = "Bold" } size = 12.00 offset = { x = 0, y = 10 }

Source of Font File

No response

Terminal Emulator (and the title of the terminal window)

alacritty

Operating System and Version

macOS15

Screenshots

image

I want all the icons to be scaled up, up, down, left and right

The font does not know what you select as offset and inter-line-spacing; there is no way for that information to reach even the most advanced code in OpenType fonts.
That must be handled by the client (i.e. alacritty) as only it knows the cell size one you do not use what the font expects.

For example iTerm does that - in some cases. I believe alacritty is one of the more bare bone clients with no frills.

The only way to reliably achieve what you want is self-patching with setting your desired cell size on patching. Then all the stuff is scaled to that cell size.

What you expect is technically not possible from the font side.

I want all the icons to be scaled up, up, down, left and right

The font does not know what you select as offset and inter-line-spacing; there is no way for that information to reach even the most advanced code in OpenType fonts. That must be handled by the client (i.e. alacritty) as only it knows the cell size one you do not use what the font expects.

For example iTerm does that - in some cases. I believe alacritty is one of the more bare bone clients with no frills.

The only way to reliably achieve what you want is self-patching with setting your desired cell size on patching. Then all the stuff is scaled to that cell size.

What you expect is technically not possible from the font side.

Thank you, i understand . Yesterday , by comparing terminal emulators like kitty, i discovered that the issue seems to be related to Alacritty's font rendering