Hyper: How to use custom fonts (fontFamily) with Hyper.js (Windows 10 + cmd.exe shell)?

Created on 16 Aug 2019  路  3Comments  路  Source: vercel/hyper

Issue: I cannot use custom fonts on Hyper.js + Windows 10.

I have commented out the default fontFamily line and replaced it with mine and all I get some ugly display. I don't get the problem with the default fontFamily. This is the case for all the custom fontFamily I've tried (see my config below)

Any ideas on how to fix?

Here's a screenshot

edit: I just installed ConEmu and changed the Font to use "Fira Code Light" and "InputMono" (which I also tried on Hyper) and both worked fine.


version: 3.0.2. stable
.hyper.js: https://gist.github.com/mrjayviper/3742bed879f99f1ba0078be496be4fb5
shell: cmd.exe (though I don't think this should affect my issue?)

I installed (for all users) 3 font families: InputMono, Fira Code and nerdfont mononoki. As a test, I also tried using the built-in font called "Cambria Bold"

Looking at Windows Settings => Personalization => Fonts => Selected Font Properties => Metadata (These are just samples. There are more fonts for the 4 families)

Cambria Bold: Fullname = Cambria Bold
Fira Code Regular: Fullname = Fira Code Regular
Fira Code Light: Fullname = Fira Code Light
Input Mono Regular : Fullname = InputMono
Input Mono Light Italic : Fullname = InputMono LightIta
mononoki Nerd Font: Fullname = mononoki-Regular Nerd Font Complete

Question

Most helpful comment

It's working fine for me, just add Ubuntu Mono as a prefix like below

fontFamily: 'Ubuntu Mono,Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console",monospace',

All 3 comments

In Hyper, click on the top left icon, goto Edit -> Preferences, and there you can change your active font and fallback Fonts.
It looks something like this:

// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',

I wanted to add the Ubuntu Mono font and it's not working on hyper

It's working fine for me, just add Ubuntu Mono as a prefix like below

fontFamily: 'Ubuntu Mono,Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console",monospace',

Was this page helpful?
0 / 5 - 0 ratings

Related issues

laur1s picture laur1s  路  3Comments

eoinmurray picture eoinmurray  路  3Comments

cooperpellaton picture cooperpellaton  路  3Comments

hxnt picture hxnt  路  3Comments

aem picture aem  路  3Comments