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.


Release Notes:
- N/A
5244085bd0张小白 committed on 6/22/2025, 11:14:58 AM· committed by GitHubparentaf8f26d