Jason1923
Jason1923

Reputation: 93

Does IDWriteTextAnalyzer::GetGlyphs() work with ligatures?

I'm trying to turn a string of text into glyph IDs for rendering. I chose the IDWriteTextAnalyzer::GetGlyphs() method, but I can't seem to group even basic ligatures this way. I've tried passing in typographic features in the arguments as well as leaving it null.

For example, "πŸ‘©β€πŸ‘©β€πŸ‘§β€πŸ‘¦" is shaped as four separate glyph IDs, and "πŸ‡ΊπŸ‡Έ" is shaped as two glyph IDs. These should both be one.

Is GetGlyphs() the correct method to be using? I'm happy with my IDWriteTextAnalyzer solution otherwise, so I'm hoping it's possible to continue to use it. I had trouble getting IDWriteTextRenderer::DrawGlyphRun() to even output the correct glyph IDs normally in my attempts, but I'm willing to revisit it if someone can confirm it works.

Upvotes: 0

Views: 74

Answers (0)

Related Questions