[PR #15278] [MERGED] AtlasEngine: Add support for locl variants #30559

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/15278
Author: @lhecker
Created: 5/3/2023
Status: Merged
Merged: 5/4/2023
Merged by: @microsoft-github-policy-service[bot]

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


📝 Commits (1)

  • e6cc9b6 AtlasEngine: Add support for locl variants

📊 Changes

2 files changed (+15 additions, -2 deletions)

View changed files

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

📄 Description

Get the locale from GetUserDefaultLocaleName and pass it to
DirectWrite's GetGlyphs / GetGlyphPlacements.

This change is very important for some fonts, which heavily depend on
the locl table, like Source Han Sans for instance.

Closes #13685

Validation Steps Performed

  • Set font to Cascadia Code
  • Set locale to "pl-PL"
  • Type "Ć"
  • The acute is less angled and almost vertical

🔄 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/15278 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 5/3/2023 **Status:** ✅ Merged **Merged:** 5/4/2023 **Merged by:** [@microsoft-github-policy-service[bot]](https://github.com/apps/microsoft-github-policy-service) **Base:** `main` ← **Head:** `dev/lhecker/atlas-engine-fixup2` --- ### 📝 Commits (1) - [`e6cc9b6`](https://github.com/microsoft/terminal/commit/e6cc9b656ef7c1cc596af1bb24e41fbe23ef9a0c) AtlasEngine: Add support for locl variants ### 📊 Changes **2 files changed** (+15 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/renderer/atlas/AtlasEngine.cpp` (+13 -2) 📝 `src/renderer/atlas/AtlasEngine.h` (+2 -0) </details> ### 📄 Description Get the locale from `GetUserDefaultLocaleName` and pass it to DirectWrite's `GetGlyphs` / `GetGlyphPlacements`. This change is very important for some fonts, which heavily depend on the locl table, like Source Han Sans for instance. Closes #13685 ## Validation Steps Performed * Set font to Cascadia Code * Set locale to "pl-PL" * Type "Ć" * The acute is less angled and almost vertical ✅ --- <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:41:33 +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#30559