[PR #13587] [MERGED] AtlasEngine: Implement remaining grid lines #29638

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/13587
Author: @lhecker
Created: 7/25/2022
Status: Merged
Merged: 7/28/2022
Merged by: @undefined

Base: mainHead: dev/lhecker/atlas-engine-lines


📝 Commits (5)

📊 Changes

5 files changed (+130 additions, -77 deletions)

View changed files

📝 src/renderer/atlas/AtlasEngine.api.cpp (+64 -29)
📝 src/renderer/atlas/AtlasEngine.cpp (+6 -11)
📝 src/renderer/atlas/AtlasEngine.h (+12 -8)
📝 src/renderer/atlas/AtlasEngine.r.cpp (+12 -8)
📝 src/renderer/atlas/shader_ps.hlsl (+36 -21)

📄 Description

This commit implements the remaining 5 of 8 grid lines:
left/top/right/bottom (COMMON_LVB) borders and double underline

AtlasEngine::_resolveFontMetrics was partially refactored to use floats
instead of doubles, because that's what the remaining code uses as well.
It also helps the new, slightly more complex double underline calculation.

Validation Steps Performed

  • Print characters with the COMMON_LVB_GRID_HORIZONTAL, GRID_LVERTICAL,
    GRID_RVERTICAL and UNDERSCORE attributes via WriteConsoleOutputW
  • All 4 grid lines are visible
  • Grid lines correctly scale according to the lineWidth
  • Print a double underline with printf "\033[21mtest\033[0m"
  • A double underline is fully visible

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/13587 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 7/25/2022 **Status:** ✅ Merged **Merged:** 7/28/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/lhecker/atlas-engine-lines` --- ### 📝 Commits (5) - [`dec1c11`](https://github.com/microsoft/terminal/commit/dec1c1131cd5a490fb27c062ad4ebc69acdae2d5) AtlasEngine: Implement remaining grid lines - [`336b275`](https://github.com/microsoft/terminal/commit/336b27558b058d2ab1b0fcb5ecbbddf1cb49db4b) Add additional comments - [`92a0518`](https://github.com/microsoft/terminal/commit/92a0518535b54e279a349e858965705931da114f) Wording - [`060c9bd`](https://github.com/microsoft/terminal/commit/060c9bd83c38423bf5c88d29d2e9a038c010d57b) Address feedback - [`8450182`](https://github.com/microsoft/terminal/commit/8450182f8593534e4eb6ddb7d27d122300536241) Address feedback ### 📊 Changes **5 files changed** (+130 additions, -77 deletions) <details> <summary>View changed files</summary> 📝 `src/renderer/atlas/AtlasEngine.api.cpp` (+64 -29) 📝 `src/renderer/atlas/AtlasEngine.cpp` (+6 -11) 📝 `src/renderer/atlas/AtlasEngine.h` (+12 -8) 📝 `src/renderer/atlas/AtlasEngine.r.cpp` (+12 -8) 📝 `src/renderer/atlas/shader_ps.hlsl` (+36 -21) </details> ### 📄 Description This commit implements the remaining 5 of 8 grid lines: left/top/right/bottom (COMMON_LVB) borders and double underline `AtlasEngine::_resolveFontMetrics` was partially refactored to use `float`s instead of `double`s, because that's what the remaining code uses as well. It also helps the new, slightly more complex double underline calculation. ## Validation Steps Performed * Print characters with the `COMMON_LVB_GRID_HORIZONTAL`, `GRID_LVERTICAL`, `GRID_RVERTICAL` and `UNDERSCORE` attributes via `WriteConsoleOutputW` * All 4 grid lines are visible ✅ * Grid lines correctly scale according to the `lineWidth` ✅ * Print a double underline with `printf "\033[21mtest\033[0m"` * A double underline is fully visible ✅ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:36:04 +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#29638