Wrong font for bold text in WSL #14583

Closed
opened 2026-01-31 04:14:08 +00:00 by claunia · 5 comments
Owner

Originally created by @brneor on GitHub (Jul 19, 2021).

Windows Terminal version (or Windows build number)

1.10.1933.0

Other Software

WSL2

Steps to reproduce

Get any output that should be displayed in bold.

Expected Behavior

Bold text is displayed in same font which normal text is displayed.

image

Actual Behavior

Bold text is displayed in different font.

image

Originally created by @brneor on GitHub (Jul 19, 2021). ### Windows Terminal version (or Windows build number) 1.10.1933.0 ### Other Software WSL2 ### Steps to reproduce Get any output that should be displayed in bold. ### Expected Behavior Bold text is displayed in same font which normal text is displayed. ![image](https://user-images.githubusercontent.com/5962898/126200483-93cbb648-eaaa-439f-b250-f4fe1abf202d.png) ### Actual Behavior Bold text is displayed in different font. ![image](https://user-images.githubusercontent.com/5962898/126200519-af5aa4d9-7351-4b54-979f-397b5b7efa3c.png)
claunia added the Resolution-By-DesignNeeds-TriageNeeds-Tag-Fix labels 2026-01-31 04:14:09 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Jul 19, 2021):

Looks to me like that's the same font, just being displayed as bold, as requested. This was added in #109, #10498, and there's a setting to disable it in progress in #10648.

@zadjii-msft commented on GitHub (Jul 19, 2021): Looks to me like that's the same font, just being displayed as **bold**, as requested. This was added in #109, #10498, and there's a setting to disable it in progress in #10648.
Author
Owner

@brneor commented on GitHub (Jul 19, 2021):

Looks to me like that's the same font, just being displayed as bold, as requested. This was added in #109, #10498, and there's a setting to disable it in progress in #10648.

I have attached screenshots showing the difference from actual Fira Code Bold and the bold displayed when in WSL. I'm sorry if it was't clear enough:

Windows Terminal Preview Version 1.10.1933.0, Powershell:
image

Windows Terminal Preview Version 1.10.1933.0, WSL2 (Fedora, Ubuntu):
image

@brneor commented on GitHub (Jul 19, 2021): > > > Looks to me like that's the same font, just being displayed as **bold**, as requested. This was added in #109, #10498, and there's a setting to disable it in progress in #10648. I have attached screenshots showing the difference from actual Fira Code Bold and the bold displayed when in WSL. I'm sorry if it was't clear enough: Windows Terminal Preview Version 1.10.1933.0, Powershell: ![image](https://user-images.githubusercontent.com/5962898/126200483-93cbb648-eaaa-439f-b250-f4fe1abf202d.png) Windows Terminal Preview Version 1.10.1933.0, WSL2 (Fedora, Ubuntu): ![image](https://user-images.githubusercontent.com/5962898/126200519-af5aa4d9-7351-4b54-979f-397b5b7efa3c.png)
Author
Owner

@zadjii-msft commented on GitHub (Jul 19, 2021):

Wait but the point I'm trying to make is that those two screenshots are showing the same font - just with different font weights. For example, here's the same output, but with Ubuntu Mono:

printf "\e[97mthis text is bright \e[mthis text isn't\n\e[1mthis text is bold   \e[mthis text isn't\n\n"

image

maybe with a better scheme:
image

The first line, the text is rendered like it was in 1.9 - without the bolding in response to 1m. The second line is the 1.10 variant. It's the same font for both, just, bold.

Which specific font are you using, and how are you emitting those lines of text?

@zadjii-msft commented on GitHub (Jul 19, 2021): Wait but the point I'm trying to make is that those two screenshots are showing the same font - just with different font weights. For example, here's the same output, but with Ubuntu Mono: ``` printf "\e[97mthis text is bright \e[mthis text isn't\n\e[1mthis text is bold \e[mthis text isn't\n\n" ``` ![image](https://user-images.githubusercontent.com/18356694/126228455-e5dcf03b-a02c-47c3-ae69-b502804890e9.png) maybe with a better scheme: ![image](https://user-images.githubusercontent.com/18356694/126228593-3db0ff5b-60d0-4e11-a9a2-483c2ea91536.png) The first line, the text is rendered like it was in 1.9 - without the bolding in response to `1m`. The second line is the 1.10 variant. It's the same font for both, just, **bold**. Which _specific_ font are you using, and how are you emitting those lines of text?
Author
Owner

@brneor commented on GitHub (Jul 19, 2021):

I'm using the font "Fira Code" and the bold text in my screenshot was generated using tput. I tried running your snippet and result text for 'bold' is still the same:

image

I can assure you, although I can provide visual proof right now, that I'm getting correct bold variants for Fira Code in Gnome Terminal running natively on Fedora.

Edit: I'm so so sorry... Turns out I'm using the wrong font variant. Changing the font solved the issue. Thank you so much for your time and attention.

@brneor commented on GitHub (Jul 19, 2021): I'm using the font "Fira Code" and the bold text in my screenshot was generated using `tput`. I tried running your snippet and result text for 'bold' is still the same: ![image](https://user-images.githubusercontent.com/5962898/126230151-6d794810-5d9a-43fa-810a-2c94add6f0d7.png) I can assure you, although I can provide visual proof right now, that I'm getting correct bold variants for Fira Code in Gnome Terminal running natively on Fedora. **Edit: I'm so so sorry... Turns out I'm using the wrong font variant. Changing the font solved the issue. Thank you so much for your time and attention.**
Author
Owner

@Luvjeet commented on GitHub (Jul 30, 2023):

what font variant did you used?

@Luvjeet commented on GitHub (Jul 30, 2023): > what font variant did you used?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#14583