# windows: Fix wrong glyph index being reported \(\#33193\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/5244085bd04415e0908282ae2341b538df171218)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 5244085bd04415e0908282ae2341b538df171218

Requested commit: 5244085bd04415e0908282ae2341b538df171218

Commit: 5244085bd04415e0908282ae2341b538df171218

Tree: 3c8db373f4f9ddaf8a9f2e345e427d9e6197cc5a

Author: 张小白

Committer: GitHub

## Message

```
windows: Fix wrong glyph index being reported (#33193)

Closes #32424

This PR fixes two bugs:

* In cases like `fi ~~something~~`, the `fi` gets rendered as a
ligature, meaning the two characters are combined into a single glyph.
The final glyph index didn’t account for this change, which caused
issues.
* On Windows, some emojis are composed of multiple glyphs. These
composite emojis can now be rendered correctly as well.

![屏幕截图 2025-06-22
161900](https://github.com/user-attachments/assets/e125426b-a15e-41d1-a6e6-403a16924ada)

![屏幕截图 2025-06-22
162005](https://github.com/user-attachments/assets/f5f01022-2404-4e73-89e5-1aaddf7419d9)


Release Notes:

- N/A
```

## Parents

- [af8f26dd34d1858dfc6201418cec81011b45f044](https://git.cafe/gitcafe/zed/commit/af8f26dd34d1858dfc6201418cec81011b45f044?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/5244085bd04415e0908282ae2341b538df171218?format=markdown)
