[PR #14014] [MERGED] AtlasEngine: Fix bugs around bitmap font rendering #29886

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/14014
Author: @lhecker
Created: 9/15/2022
Status: ✅ Merged
Merged: 9/16/2022
Merged by: @undefined

Base: main ← Head: dev/lhecker/14006-bitmap-fonts


📝 Commits (1)

  • 7a891dc AtlasEngine: Fix bugs around bitmap font rendering

📊 Changes

2 files changed (+16 additions, -9 deletions)

View changed files

📝 src/renderer/atlas/AtlasEngine.api.cpp (+7 -4)
📝 src/renderer/atlas/AtlasEngine.cpp (+9 -5)

📄 Description

This commit fixes several issues:

  • Some fonts set a line-gap even though they behave as if they
    don't want any line-gaps. Since Terminals don't really have
    any gaps anyways, it'll now not be taken into account anymore.
  • Center alignment breaks bitmap glyphs which expect left-alignment.
  • Automatic "opsz" axis makes Terminus TTF's italic glyphs look quite
    weird. I disabled this feature as we might not need it anyways.

A complete fix depends on #14013
Closes #14006

Validation Steps Performed

  • Use Terminus TTF at 13.5pt
  • Print UTF-8-demo.txt
  • No gaps between block characters ✅

🔄 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/14014 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 9/15/2022 **Status:** ✅ Merged **Merged:** 9/16/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/lhecker/14006-bitmap-fonts` --- ### 📝 Commits (1) - [`7a891dc`](https://github.com/microsoft/terminal/commit/7a891dcbe1f74a3295d57d546a15c424f5ac3f6e) AtlasEngine: Fix bugs around bitmap font rendering ### 📊 Changes **2 files changed** (+16 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `src/renderer/atlas/AtlasEngine.api.cpp` (+7 -4) 📝 `src/renderer/atlas/AtlasEngine.cpp` (+9 -5) </details> ### 📄 Description This commit fixes several issues: * Some fonts set a line-gap even though they behave as if they don't want any line-gaps. Since Terminals don't really have any gaps anyways, it'll now not be taken into account anymore. * Center alignment breaks bitmap glyphs which expect left-alignment. * Automatic "opsz" axis makes Terminus TTF's italic glyphs look quite weird. I disabled this feature as we might not need it anyways. A complete fix depends on #14013 Closes #14006 ## Validation Steps Performed * Use Terminus TTF at 13.5pt * Print UTF-8-demo.txt * No gaps between block characters ✅ --- <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#29886