vercel / vercel/hyper

Font rendering issues at small font sizes

Open
#2,855 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🐛 Type: Bug
Dominant language
TypeScript
Stars
44.7k
Forks
3.6k
Avg merge
21m
Merged PRs (30d)
1

Description

  • I am on the latest Hyper.app version
  • I have searched the issues of this repo and believe that this is not a duplicate

Issue

Some of the characters in the terminal are being clipped towards the right end. This happens at lower font sizes and not if you increase the font size. Look at the characters @, %, and &.

  • Consolas at 20px
    image
  • Consolas at 18px
    image
  • Consolas at 16px
    image

Although, this issue only arises for some fonts. For example, Inconsolata at 16px looks fine.

  • Inconsolata at 16px
    image

For comparison, VSCode has no problem rendering Consolas at smaller font sizes.

  • VSCode Consolas 16px
    image

  • VSCode Consolas 18px
    image


I don't think it is an issue with bold font, because the @ character in the prompt is not bold. Can't test all characters on normal font weight because setting fontWeightBold: 'normal' doesn't work, anyway that's another issue.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the clipping in Hyper.app on Windows 10 with Consolas at 16–18px, comparing it with Inconsolata and the supplied .hyper.js Gist. The issue names no source files or tests, so trace the terminal font-rendering entry point; done means affected characters render without clipping at small sizes while existing font behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
desktop, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.