Skip to content

Add an option to suppress bold fonts (render as normal weight) for 32-bit colors #20635

Description

@iBug

Description of the new feature

On hi-res displays like 4K, normal font weight can be much more legible for some users. It's therefore desirable to allow the terminal to disregard applications' request for bold font and instead render the normal font weight for all characters.

This feature request is exactly the same as this iTerm2 option:

Image

Comparison (note the RUBY_PLATFORM variable):

Windows Terminal (current) iTerm2
Image Image

To reproduce:

  • Set TERM=xterm-256color
  • Print an escape sequence using both VT intense style (CSI 1 m) and 32-bit color:
  • echo -e '\x1B[1m\x1B[38;2;255;255;0mAAAA'
  • Verify the text AAAA comes in bold font.

This happens even if intenseTextStyle is set to bright.

In particular, using the CSI 38;5;<n>m sequence, text comes out as normal weight for 0 < n < 16, and bold weight for n >= 16 (i.e. outside the standard 16 colors palette range).

Proposed technical implementation details

No response

Activity

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

    Issue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.Needs-Tag-FixDoesn't match tag requirementsNeeds-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions