[PR #14039] [MERGED] AtlasEngine: Fix uneven baselines when scaling glyphs #29888

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/14039
Author: @lhecker
Created: 9/19/2022
Status: Merged
Merged: 9/21/2022
Merged by: @undefined

Base: mainHead: dev/lhecker/13987-wavy-baseline


📝 Commits (1)

  • 19a9bdc AtlasEngine: Fix uneven baselines when scaling glyphs

📊 Changes

2 files changed (+36 additions, -39 deletions)

View changed files

📝 src/renderer/atlas/AtlasEngine.h (+1 -1)
📝 src/renderer/atlas/AtlasEngine.r.cpp (+35 -38)

📄 Description

This commit changes the glyph scale algorithm to prefer aligning glyphs to
their baseline. This improves the visual appearance of simulated italic glyphs.
However wide Emojis in narrow cells now look slightly worse without centering.

Closes #13987

Validation Steps Performed

  • Use FiraCode which has no italic variant and instead uses simulated italics
  • Write italic text
  • Baseline is consistent

🔄 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/14039 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 9/19/2022 **Status:** ✅ Merged **Merged:** 9/21/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/lhecker/13987-wavy-baseline` --- ### 📝 Commits (1) - [`19a9bdc`](https://github.com/microsoft/terminal/commit/19a9bdc627b5415099cd6106b8cd2ded1e37a0a8) AtlasEngine: Fix uneven baselines when scaling glyphs ### 📊 Changes **2 files changed** (+36 additions, -39 deletions) <details> <summary>View changed files</summary> 📝 `src/renderer/atlas/AtlasEngine.h` (+1 -1) 📝 `src/renderer/atlas/AtlasEngine.r.cpp` (+35 -38) </details> ### 📄 Description This commit changes the glyph scale algorithm to prefer aligning glyphs to their baseline. This improves the visual appearance of simulated italic glyphs. However wide Emojis in narrow cells now look slightly worse without centering. Closes #13987 ## Validation Steps Performed * Use FiraCode which has no italic variant and instead uses simulated italics * Write italic text * Baseline is consistent ✅ --- <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:37:27 +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#29888