Skip to content

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

Closed

Description

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

Activity

  1. ghost added
    Needs-Triage
    on Feb 14, 2021
  2. ghost added
    Needs-Tag-Fix
    on Feb 14, 2021
  3. changed the title [-]Cannot use different styles of Input Mono font[/-] [+][bug] Cannot use different styles of Input Mono font[/+] on Feb 14, 2021
  4. skyline75489 commented on Feb 19, 2021

    @skyline75489
    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. Mike Griese (@zadjii-msft) Dustin L. Howett (@DHowett) any idea why this is happening?

  5. epyonavenger commented on Mar 2, 2021

    @epyonavenger

    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.

  6. DHowett commented on Mar 2, 2021

    @DHowett
    Member

    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. 😄

  7. epyonavenger commented on Mar 2, 2021

    @epyonavenger

    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. 🤔

  8. added
    Area-Fonts
    Issue-Bug
    Priority-3
    Product-Terminal
    on Mar 4, 2021
  9. ghost removed
    Needs-Tag-Fix
    on Mar 4, 2021
  10. zadjii-msft commented on Mar 4, 2021

    @zadjii-msft
    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 😄

  11. removed
    Needs-Triage
    on Apr 13, 2021
  12. derekslenk commented on Oct 15, 2022

    @derekslenk

    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

  13. Diablo-D3 commented on Nov 7, 2022

    @Diablo-D3

    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.

  14. derekslenk commented on Nov 7, 2022

    @derekslenk

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

  15. falleng0d commented on Nov 10, 2022

    @falleng0d

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

  16. DHowett commented on Nov 10, 2022

    @DHowett
    Member

    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)
        }
        ...
    }
  17. DHowett commented on Nov 10, 2022

    @DHowett
    Member

    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.

  18. ghost closed this as completedon Nov 10, 2022
  19. ghost added
    Resolution-Duplicate
    on Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-FontsIssue-BugPriority-3Product-TerminalResolution-Duplicate

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions