[PR #9096] [MERGED] Introduce DxFontRenderData #27421

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/9096
Author: @skyline75489
Created: 2/10/2021
Status: Merged
Merged: 2/18/2021
Merged by: @undefined

Base: mainHead: chesterliu/dev/font-render-data


📝 Commits (10+)

📊 Changes

10 files changed (+928 additions, -875 deletions)

View changed files

📝 src/renderer/base/lib/base.vcxproj (+1 -1)
📝 src/renderer/dx/CustomTextLayout.cpp (+23 -288)
📝 src/renderer/dx/CustomTextLayout.h (+4 -21)
src/renderer/dx/DxFontRenderData.cpp (+755 -0)
src/renderer/dx/DxFontRenderData.h (+96 -0)
📝 src/renderer/dx/DxRenderer.cpp (+41 -520)
📝 src/renderer/dx/DxRenderer.hpp (+3 -45)
📝 src/renderer/dx/lib/dx.vcxproj (+2 -0)
📝 src/renderer/dx/lib/dx.vcxproj.filters (+2 -0)
📝 src/renderer/dx/sources.inc (+1 -0)

📄 Description

This is my attempt to isolate all the dwrite font related thing by
introducing a new layer - DxFontRenderData. This will free
DxRenderer & CustomTextLayout from the burden of handling fonts &
box effects. The logic is more simplified & streamlined.

In short I just moved everything fonts-related into DxFontRenderData
and started from there. There's no modification to code logic. Just pure
structural stuff.

SGR support tracking issue: #6879
Initial Italic support PR: #8580


🔄 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/9096 **Author:** [@skyline75489](https://github.com/skyline75489) **Created:** 2/10/2021 **Status:** ✅ Merged **Merged:** 2/18/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `chesterliu/dev/font-render-data` --- ### 📝 Commits (10+) - [`bc6ab94`](https://github.com/microsoft/terminal/commit/bc6ab94f9d54415815864bba3e08029625e27580) Initialize IFontRenderData & DxFontRenderData - [`1440ae7`](https://github.com/microsoft/terminal/commit/1440ae7595f0693e605aecdb7ba9f80c590992a4) vcxprojc - [`ba43e8c`](https://github.com/microsoft/terminal/commit/ba43e8ccbddde172aaaa3656c46a757623fd6f58) Refactor - [`9a7413e`](https://github.com/microsoft/terminal/commit/9a7413e367d2e7f5f4f730393a7e26774111433e) Feedback - [`5b65094`](https://github.com/microsoft/terminal/commit/5b650941924b814fcb3b4e58d41d948d755a23ed) Format - [`c9a43be`](https://github.com/microsoft/terminal/commit/c9a43be7934ed1d3577c20725e6c1d199b884a9d) Unused - [`36e7463`](https://github.com/microsoft/terminal/commit/36e7463306fcc0ae5070b617122305375363fd1d) Feedback - [`d651886`](https://github.com/microsoft/terminal/commit/d65188616e9725320c8334905c3e5c4c67a4b819) Merge branch 'main' into chesterliu/dev/font-render-data - [`3a44c44`](https://github.com/microsoft/terminal/commit/3a44c44ce65bf166d583fd4423ba3d5408a4d482) Fix locale name - [`149951b`](https://github.com/microsoft/terminal/commit/149951b126e7ecb9f474a37b8105dbce9a6a2efb) Hide UserLocaleName ### 📊 Changes **10 files changed** (+928 additions, -875 deletions) <details> <summary>View changed files</summary> 📝 `src/renderer/base/lib/base.vcxproj` (+1 -1) 📝 `src/renderer/dx/CustomTextLayout.cpp` (+23 -288) 📝 `src/renderer/dx/CustomTextLayout.h` (+4 -21) ➕ `src/renderer/dx/DxFontRenderData.cpp` (+755 -0) ➕ `src/renderer/dx/DxFontRenderData.h` (+96 -0) 📝 `src/renderer/dx/DxRenderer.cpp` (+41 -520) 📝 `src/renderer/dx/DxRenderer.hpp` (+3 -45) 📝 `src/renderer/dx/lib/dx.vcxproj` (+2 -0) 📝 `src/renderer/dx/lib/dx.vcxproj.filters` (+2 -0) 📝 `src/renderer/dx/sources.inc` (+1 -0) </details> ### 📄 Description This is my attempt to isolate all the dwrite font related thing by introducing a new layer - `DxFontRenderData`. This will free `DxRenderer` & `CustomTextLayout` from the burden of handling fonts & box effects. The logic is more simplified & streamlined. In short I just moved everything fonts-related into `DxFontRenderData` and started from there. There's no modification to code logic. Just pure structural stuff. SGR support tracking issue: #6879 Initial Italic support PR: #8580 --- <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:21:53 +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#27421