[PR #18903] Render SGR 1 as bold when used with ITU colors #31639

Open
opened 2026-01-31 09:48:34 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/18903

State: closed
Merged: Yes


Summary of the Pull Request

The SGR 1 VT attribute can either be interpreted as a brighter color,
or as a bolder font, depending on the Intense text style setting.
However, the concept of brightness only applies to the eight standard
ANSI colors, so when SGR 1 is configured as bright, it has no effect
on the ITU T.416 colors (RGB and the 256 index colors).

To address that, we now interpret SGR 1 as a bolder font when applied
to ITU colors, regardless of whether the Intense text style option is
set to bold or not.

Note that this only applies to the Atlas render engine, since the GDI
engine doesn't support bold fonts.

Validation Steps Performed

I've manually tested SGR 1 applied to different color formats with the
Intense text style option set to None, and confirmed that the text
is now rendered with a bold font for ITU colors, but not for ANSI/AIX
colors.

PR Checklist

**Original Pull Request:** https://github.com/microsoft/terminal/pull/18903 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request The `SGR 1` VT attribute can either be interpreted as a brighter color, or as a bolder font, depending on the _Intense text style_ setting. However, the concept of brightness only applies to the eight standard ANSI colors, so when `SGR 1` is configured as _bright_, it has no effect on the ITU T.416 colors (RGB and the 256 index colors). To address that, we now interpret `SGR 1` as a bolder font when applied to ITU colors, regardless of whether the _Intense text style_ option is set to bold or not. Note that this only applies to the Atlas render engine, since the GDI engine doesn't support bold fonts. ## Validation Steps Performed I've manually tested `SGR 1` applied to different color formats with the _Intense text style_ option set to _None_, and confirmed that the text is now rendered with a bold font for ITU colors, but not for ANSI/AIX colors. ## PR Checklist - [x] Closes #18284
claunia added the pull-request label 2026-01-31 09:48:34 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31639