Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Cannot use different styles of Input Mono font #9157

Closed
WojciechThomas opened this issue Feb 14, 2021 · 12 comments
Closed

[bug] Cannot use different styles of Input Mono font #9157

WojciechThomas opened this issue Feb 14, 2021 · 12 comments
Labels
Area-Fonts Related to the font Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-3 A description (P3) Product-Terminal The new Windows Terminal. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Milestone

Comments

@WojciechThomas
Copy link

Environment

Windows build number: Microsoft Windows NT 10.0.19042.0
Windows Terminal version: 1.5.10411.0

Steps to reproduce

Use any editor to configure fontFace setting.

Expected behavior

Accept different versions of Input Mono font, e.g.:

        "defaults":
        {
            // Put settings here that you want to apply to all profiles.
            "fontFace": "Input Mono Narrow"  // or Condensed or Compressed
        },

Actual behavior

With font faces different than "Input Mono" Terminal falls back to Consolas font.
image

With "Input Mono" font everything works correctly:
image

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Feb 14, 2021
@WojciechThomas WojciechThomas changed the title Cannot use different styles of Input Mono font [bug] Cannot use different styles of Input Mono font Feb 14, 2021
@skyline75489
Copy link
Collaborator

I've tried installed all 3 variants of Input Mono:

image

The DWrite API actually reports that Input Mono Condensed does not exist in the system. However Input Mono does exist. @zadjii-msft @DHowett any idea why this is happening?

@epyonavenger
Copy link

It's not just "Input Mono", the same behavior can be seen with Hack. I normally use "Hack Regular", but since the update that falls through to Consolas.

@DHowett
Copy link
Member

DHowett commented Mar 2, 2021

It's more probable that since the update it tells you that it fell back to Consolas. That error dialog is hooked up to the renderer actually failing to find the font, even after it's tried a couple different ways. It was perhaps never working properly, and the dialog only now alerts you to that fact. 😄

@epyonavenger
Copy link

Well, it was definitely using Hack Regular at some point, though to your point, it's possible it was never quite right, and only now is it notifying me. Still, I'd trade not being notified for using the right font again. 🤔

@zadjii-msft zadjii-msft added Area-Fonts Related to the font Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-3 A description (P3) Product-Terminal The new Windows Terminal. labels Mar 4, 2021
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label Mar 4, 2021
@zadjii-msft zadjii-msft added this to the Terminal v2.0 milestone Mar 4, 2021
@zadjii-msft
Copy link
Member

This looks like a real bug, but I've got no idea why this isn't working. I'll stick it in 2.0 - we'll figure it out eventually 😄

@DHowett DHowett removed the Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting label Apr 13, 2021
@zadjii-msft zadjii-msft modified the milestones: Terminal v2.0, 22H2 Jan 4, 2022
@derekslenk
Copy link

derekslenk commented Oct 15, 2022

Hmm - this has been making Windows Terminal unusable. So much for WSL.

Not understanding why this issue was closed with no linked ticket or workaround

@Diablo-D3
Copy link

Diablo-D3 commented Nov 7, 2022

The workaround, currently, is only install the variant of Input you want. This works in Windows Terminal but sometimes not other apps.

A working example of another terminal would be Alacritty, where if I want, say, narrow, I can set the four styles as "Narrow", "Narrow Bold", "Narrow Italic", "Narrow Bold Italic". There is no equivalent in Windows Terminal yet to set a raw style string, and can only use the weight enums.

@derekslenk
Copy link

derekslenk commented Nov 7, 2022

If you use oh-my-posh, it seems to download and install the fonts correctly
image

@falleng0d
Copy link

Screenshot1853
Font is recognized in other apps and it has a lot of weights such as "compressed" that are not recognized by windows terminal

@DHowett
Copy link
Member

DHowett commented Nov 10, 2022

Huh, thanks! I believe that "Compressed" (like "Condensed") is a name for the width axis, not the weight axis.

You can use custom font axes like width (wdth) by adding an "axes" field to your "font" like this:

"font": {
    "axes": {
        "wdth": 100 // Width axis; 100 is regular width; values range from 0 to (unknown)
    }
    ...
}

@DHowett
Copy link
Member

DHowett commented Nov 10, 2022

For font names that contain axis tags in general, we're tracking that in /dup #9744 (because it has more technical information on the problem, even though it is a newer issue than this one). Some preliminary work was done in #10777, but it proved difficult to work into our font selection engine at the time. We're in a better place now 😄

That having been said, please subscribe to #9744 for updates. In the meantime, you can use the axes override to specify specific widths.

@ghost
Copy link

ghost commented Nov 10, 2022

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 ghost closed this as completed Nov 10, 2022
@ghost ghost added the Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. label Nov 10, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Fonts Related to the font Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-3 A description (P3) Product-Terminal The new Windows Terminal. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

8 participants