hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Fonts are Heavier in v2.0

Open cgilmore opened this issue 8 years ago • 30 comments

  • [x] I am on the latest Hyper.app version
  • [x] I have searched the issues of this repo and believe that this is not a duplicate
  • OS version and name: OS X 10.11.6
  • Hyper.app version: 2.0

Issue

After updating to v2.0 I noticed that the font rendering is heavier than before. I've tried changing the fontWeight setting to either "light" or "thin" and there's no change. Below I've included a screen shot of how Hyper compares to iTerm and Terminal.

screen shot comparing iTerm, Terminal, and Hyper

(iTerm/Terminal/Hyper)

Editing other font values in my .hyper.js file does seem to work appropriately (fontSize, fontFamily…), so Hyper is responding to my .hyper.js.

Thanks

cgilmore avatar Apr 17 '18 17:04 cgilmore

@sikthought could you try setting it to 100 or lighter and let me know if that works? It should take a CSS <font-weight> value.

Tyriar avatar Apr 19 '18 16:04 Tyriar

there are a bunch of similar tickets like #2505, #2714 and #51

francisdb avatar Apr 20 '18 11:04 francisdb

I found that my fonts are thinner since updating, and the fontWeight options are having no effect. (Font size : 12px)

ButchMonkey avatar Apr 20 '18 11:04 ButchMonkey

From https://github.com/zeit/hyper/issues/2714#issuecomment-370184761 it sounds like 100 works, please confirm 😃

Tyriar avatar Apr 20 '18 16:04 Tyriar

The fontWeight setting seems to be ignored. Tried hyper, preferences... and then changing fontWeight to different values. Restarting hyper but still the same font in use.

Maybe related to old files from a previous release?

francisdb avatar Apr 20 '18 16:04 francisdb

@Tyriar — Sorry, it doesn't seem to be effecting anything ('lighter' also didn't seem to have any effect).

screen shot to show font weight settings and results

(.hyper.js/Hyper/Terminal/iTerm)

I also checked to be sure, and Terminal and iTerm are set on Regular as their weight inside of their preferences.

cgilmore avatar Apr 20 '18 18:04 cgilmore

@sikthought Hyper in the screenshot is using a different font though (look at the l). This is the same in your original report, make sure the font families you're comparing are identical.

Tyriar avatar Apr 20 '18 18:04 Tyriar

@Tyriar — Hmmmm…

Here's what I have, tho:

Hyper: screen shot of Hyper

Terminal: screen shot 2018-04-20 at 13 39 25

iTerm: screen shot 2018-04-20 at 13 39 53

I also just checked VSCode, it is also set with IBM Plex Mono and is showing what the iTerm and Terminal is showing.

So, it looks like Hyper isn't loading Plex Mono at all and is falling back to Fira Code (I also tried "IBMPlexMono" without spaces like in VSC). However, that weight issue still applies:

screen shot 2018-04-20 at 13 48 24

(all with Fira Code this time)

cgilmore avatar Apr 20 '18 18:04 cgilmore

Fira Code in VS Code (size 11, weight "100") and Terminal.app (size 11pt, weight "Light") seem fine:

screen shot 2018-04-20 at 11 58 54 am

(VS Code/Terminal.app)

Maybe it's related to Hyper if my screenshot looks fine to you.

Tyriar avatar Apr 20 '18 19:04 Tyriar

So, I just tried a fresh install (deleting the app and all files associated with it), to see if a clean config will help. I am getting Plex Mono to load fine—so all my ls are the correct ls 🙃—but being able to change the weight is still unresponsive (even going heavier).

cgilmore avatar Apr 20 '18 19:04 cgilmore

@sikthought – I hate to do this, but your Hyper config is calling for “IMB Plex Mono”.

neeklamy avatar Apr 20 '18 19:04 neeklamy

Eagle eye @neeklamy 🦅

Tyriar avatar Apr 20 '18 19:04 Tyriar

@neeklamy — FML 🤣

Well, it worked itself out in the end anyway. 👍🏼

cgilmore avatar Apr 21 '18 06:04 cgilmore

I'm having this issue, i just can't change the weight of the font since v2.0... it's always bold. Any solution?

Downgraded to 1.4.6 and theres no issue

Edit: Hyper updated by itself without im accepting it and now im stuck with bold fonts on v2.0... how to disable auto update?

igoticecream avatar Apr 23 '18 11:04 igoticecream

You can disable updates for stable by adding releases.hyper.is to your hosts file, you can google how to do this.

albinekb avatar Apr 23 '18 12:04 albinekb

Am also having trouble adjusting fontWeight in 2.0.0-canary.18 on macOS. This is Fira Code with a ostensible fontWeight of "100"

image

The same text rendered by VS Code's integrated terminal for comparison. It's subtle, but Hyper is definitely blurrier.

image

They look identical if I set VS Code's terminal.integrated.fontWeight to normal, so that implies Hyper's not respecting the setting.

iameli avatar Apr 24 '18 04:04 iameli

https://github.com/zeit/hyper/blob/bba14f6324b0fbc0a25601a82ef3652638d43d56/lib/components/term.js#L33

We need to double check that this is actually set and is getting forwarded to xterm 👍

albinekb avatar Apr 24 '18 11:04 albinekb

Can confirm that both the fontWeight and fontWeightBold properties are set to normal, but the font is still bold.

image

notlmn avatar Apr 24 '18 16:04 notlmn

I did a little bit of debugging on this issue and compiled Hyper with "xterm": "3.3.0" instead of the current "xterm": "chabou/xterm.js#7cb4b8e" and the problem was gone. Setting fontWeight to light, lighter or something like 100/300/ whatever worked just fine.

I believe it's now up to @chabou to check if this issue is due to an older upstream xterm version being used by Hyper or due to changes on his fork.

rfgamaral avatar May 10 '18 11:05 rfgamaral

@rfgamaral Not exactly. My fork has an unmerged PR for huge performance gain. And this is this xterm PR that introduced this regression. But It has been fixed in this PR after my feedback: https://github.com/xtermjs/xterm.js/pull/1327#issuecomment-383811161

I'll update my fork ASAP.

chabou avatar May 10 '18 11:05 chabou