[PR #12307] [MERGED] AtlasEngine: Fix support for combining diacritics #28971

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/12307
Author: @lhecker
Created: 2/1/2022
Status: Merged
Merged: 2/1/2022
Merged by: @undefined

Base: mainHead: dev/lhecker/11925-atlas-engine-diacritics


📝 Commits (1)

  • 91734e0 AtlasEngine: Fix support for combining diacritics

📊 Changes

2 files changed (+35 additions, -0 deletions)

View changed files

📝 src/renderer/atlas/AtlasEngine.cpp (+33 -0)
📝 src/renderer/atlas/AtlasEngine.h (+2 -0)

📄 Description

IDWriteTextAnalyzer::GetGlyphs is not enough to get a
DWRITE_SHAPING_TEXT_PROPERTIES::canBreakShapingAfter
value that works for combining diacritical marks.
This requires an additional call to GetGlyphPlacements.
This commit increases CPU usage for complex text by ~10%.

PR Checklist

Validation Steps Performed

  • echo "[e`u{0301}`u{0301}]" prints an "e" with 2 accents

🔄 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/12307 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 2/1/2022 **Status:** ✅ Merged **Merged:** 2/1/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/lhecker/11925-atlas-engine-diacritics` --- ### 📝 Commits (1) - [`91734e0`](https://github.com/microsoft/terminal/commit/91734e058ebee58cc95413a90bed811740db2002) AtlasEngine: Fix support for combining diacritics ### 📊 Changes **2 files changed** (+35 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/renderer/atlas/AtlasEngine.cpp` (+33 -0) 📝 `src/renderer/atlas/AtlasEngine.h` (+2 -0) </details> ### 📄 Description `IDWriteTextAnalyzer::GetGlyphs` is not enough to get a `DWRITE_SHAPING_TEXT_PROPERTIES::canBreakShapingAfter` value that works for combining diacritical marks. This requires an additional call to `GetGlyphPlacements`. This commit increases CPU usage for complex text by ~10%. ## PR Checklist * [x] Closes #11925 * [x] I work here * [x] Tests added/passed ## Validation Steps Performed * ``echo "[e`u{0301}`u{0301}]"`` prints an "e" with 2 accents ✅ --- <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:31:57 +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#28971