Repository: vscode
Issue: Font weight incorrectly applied using Iosevka font
Labels: bug,macos,font-rendering,confirmation-pending

Type: <b>Bug</b>

I added the Iosevka Nerd Font and wanted to set my font weight to ExtraLight. Using the "editor.fontWeight" preference, the following was observed:

| editor.fontWeight setting | Effect Observed |
| ------------- | ------------- |
| 100 | <img width="570" alt="fontweight100" src="https://github.com/microsoft/vscode/assets/69362332/d8990e0a-07cb-4aa6-b1b0-527f7696d42c">                        |
| 200 | <img width="570" alt="fontweight200" src="https://github.com/microsoft/vscode/assets/69362332/df1e6e1b-9aaf-45d0-a176-21edca59154b">                        |
| 300 | <img width="570" alt="fontweight300" src="https://github.com/microsoft/vscode/assets/69362332/1c3d492b-0598-4c56-bafd-a0b7ff473461">                        |
| 400 | <img width="570" alt="fontweight400" src="https://github.com/microsoft/vscode/assets/69362332/2b018706-29af-402b-a8cf-9fc657f37b58">                        |
| 500 | <img width="570" alt="fontweight500" src="https://github.com/microsoft/vscode/assets/69362332/31f671fd-8137-4648-a163-0ab3c6e1b84a">                        |
| 600 | <img width="570" alt="fontweight600" src="https://github.com/microsoft/vscode/assets/69362332/0f1236b4-8a51-49b8-b012-9756e833a636">                        |
| 700 | <img width="570" alt="fontweight700" src="https://github.com/microsoft/vscode/assets/69362332/cdd2620a-f9e9-40ca-a901-ec19b29b87b7">                        |
| 800 | <img width="570" alt="fontweight800" src="https://github.com/microsoft/vscode/assets/69362332/7e55958e-5183-4127-8d4b-b63535909307">                        |
| 900 | <img width="570" alt="fontweight900" src="https://github.com/microsoft/vscode/assets/69362332/f6197be2-83df-4629-999d-87e7f00514a9">                        |
| 1000 | <img width="570" alt="fontweight1000" src="https://github.com/microsoft/vscode/assets/69362332/2b55f12a-1644-415b-bee2-28f4e0252bda">                        |

The Iosevka github repo shows how the weights are supposed to look: https://github.com/be5invis/Iosevka/

Strangely enough, I was able to reference the PostScript name of the ExtraLight font ("IosevkaNF-ExtraLight") to use it, but italic comments are set to Regular/Medium by default and disrupt the visual flow of the code, making it more difficult to read.

I hope this helps diagnose this issue. Thank you for reading.




VS Code version: Code 1.84.2 (1a5daa3a0231a0fbba4f14db7ec463cf99d7768e, 2023-11-09T10:52:57.054Z)
OS version: Darwin arm64 22.6.0
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Apple M1 Pro (10 x 24)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: enabled_on<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled|
|Load (avg)|16, 15, 10|
|Memory (System)|16.00GB (0.06GB free)|
|Process Argv||
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (15)</summary>

Extension|Author (truncated)|Version
---|---|---
vscode-custom-css|be5|7.2.1
EditorConfig|Edi|0.16.4
shell-format|fox|7.2.5
github-linker|gim|0.2.5
copilot|Git|1.139.0
copilot-chat|Git|0.10.2
terraform|has|2.29.0
Lisp|mat|0.1.12
color-highlight|nau|2.5.0
indent-rainbow|ode|8.3.1
material-icon-theme|PKi|4.32.0
vscode-yaml|red|1.14.0
shellcheck|tim|0.35.0
markdown-all-in-one|yzh|3.5.1
material-theme|zhu|3.16.2


</details>
<!-- generated by issue reporter -->