How can I get a glyph that was manually set for a given character?

I can use the Glyphs panel to use a character with a manually selected alternate glyph. But how can I programmatically get this glyph id?

Example of picking an alternate glyph

I am currently using IDrawingStyle::GetSpecialGlyph , but it only works if the base character has no Unicode representation. But, say, if I reset some alternative character for the character U + 0041 ʟᴀᴛɪɴ ᴄᴀᴘɪᴛᴀʟ ʟᴇᴛᴛᴇʀ ᴀ in the document using the Glyphs panel, the base character will be U + 0041, so IDrawingStyle::GetSpecialGlyph will not work. How can I programmatically get this glyph id?

+7
source share
1 answer

You can get it by transferring wax. Iterate the wax strand with CallbackWaxIterator , and then for each wax boss on the wax line, get the IWaxGlyphs interface and use PeekGlyphArray or MapCharsToGlyphs in combination with GetGlyphAt .

+3
source

All Articles