Reputation: 93
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