这是indexloc提供的服务,不要输入任何密码
Skip to content

nf-hack behaves differently than the original hack-font #1245

@zeus86

Description

@zeus86

🗹 Requirements

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

🎯 Subject of the issue

Experienced behavior:
On Arch (x86_64, Kernel 6.3.2) with Bash on Konsole (23.04.1) and oh-my-posh the hack-font provided by the arch-repos (extra/ttf-hack 3.003-3) behaves differently on rendering e.g. powerline-symbols. The original hack-font already contains some powerline-symbols (which do render correctly in konsole), but the nf-hack font slightly squishes the symbols together (depending on font-size. however, the usable range is broken anyways, i usually use fonsize 10.0). On the example of the right|left-hard-devider icons, it looks like, as if the triangle is misplaced by 1px or so, see screenshots for details. While it doesn't look super-annoying, the original hack-font renders differently. So far i tested some more fonts (but without direct comparison to their original counterpart), namely dejavu-sans, 3270, anonymice-pro, meslo and sourcecode pro, but all of them seem to render slightly off, so i thought this was a konsole-issue, however, og-hack renders fine... (tested basically all other konsole-options which might have an influence but with no result)

Expected behavior:
Both fonts should behave identical

Example symbols:

  • nf-pl-left_hard_divider
  • nf-pl-right_hard_divider
  • ...and many more (at least basically all useable dividers)

🔧 Your Setup

  • Which font are you using (e.g. Anonymice Powerline Nerd Font Complete.ttf)?
    • HackNerdFont-Regular.ttf (but applies to mono-variants as well as other nf-fonts as well)
  • Where did you get the file from (download link, self patched, source downloaded from link...)
  • Which terminal emulator are you using (e.g. iterm2, urxvt, gnome, konsole)?
    • konsole 23.04.1
  • Are you using OS X, Linux or Windows? And which specific version or distribution?
    • Arch Linux

★ Screenshots (Optional)

fonsize=10:
original hack-font:
og-hack

nf-hack:
nf-hack
another example with more colors:
nf-hack-root

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions