terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Setting a font in settings.json

Open jromero2k opened this issue 6 years ago • 5 comments

Environment

Windows build number: Version 10.0.18363.778 Windows Terminal version (if applicable): 1.0.1401.0

Steps to reproduce

  1. Install ttc-iosevka-curly-3.1.0.zip fonts in Windows
  2. Verify it works properly in any other app
  3. In settings.json, set "fontFace": "Iosevka Term Curly Light"

Expected behavior

Iosevka Term Curvy Light is selected as active font, or some kind of error is reported so user can know what's that Terminal didn't like

Actual behavior

Terminal reverts to the default (non-ligature) font, without any explanation (or logging that I know of)

jromero2k avatar Jun 01 '20 01:06 jromero2k

The reason why it uses the default font would likely be that the font name is not recognized. Yeah you're right. There's currently no explanation when this happens. Seems a little confusing.

skyline75489 avatar Jun 01 '20 05:06 skyline75489

As far as I can tell, Iosevka Term Curly Light is the proper name for the font, at least as reported by Settings|Font settings in Windows..

Having "fontFace": "Iosevka Term Curly" "fontWeight": "200" like in VSCode would be even better, but that's not available (yet?)

jromero2k avatar Jun 01 '20 05:06 jromero2k

fontWeight will be in Preview (it's in master if you want to build it).

WSLUser avatar Jun 02 '20 16:06 WSLUser

I believe the root of the issue is that we specify font family names and call them font faces. For now, fontFace: Iosevka Term Curly should suffice, and font weight will come out soon. For fixing the root cause, /dup #1163.

DHowett avatar Jun 05 '20 01:06 DHowett

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

ghost avatar Jun 05 '20 01:06 ghost