vercel / vercel/hyper

better font configuration

Open
#5,870 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Is your feature request related to a problem? Please describe.

Font detection and configuration is troublesome with symbols defined across multiple fonts with different weights and relative scales. Example setting up with my powerlevel10k theme didn't even work right out of the box. Hyper didn't pick up all the fonts on my system that provide the ones that provide the symbols, so I used fontfor to figure it out from my gnome terminal.

Describe the solution you'd like

Well... I see this as sadly in need of a 3 part solution.

  1. find fonts not configured in hyper should still be detected as they would for any system fonts
  2. Allow character/range overrides for glyphs, like kitty
  3. font configuration should be more of an array of objects, maybe something like this, because for example the Retina weight isn't provided by most fonts.
    [
      {
         family: "Fira Code",
         weight: "Retina",
         size: 12,
         features: "+onum" // maybe another bug, but features should be supported
      }
   ]

Describe alternatives you've considered

kinda works

    fontFamily: '"Fira Code", "MesloLGS NF", FontAwesome, Symbola',

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

No files or tests are named. Start by locating Hyper's font configuration and detection entry points, then assess the three requested changes: system-font discovery, glyph range overrides, and array-based font objects with features. Done would require an agreed scope and corresponding tests or documented behavior for the selected configuration changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.