I can use the Glyphs panel to use a character with a manually chosen alternative glyph. But how can I then retrieve that glyph ID programmatically?
I am currently using IDrawingStyle::GetSpecialGlyph
, but it only works if the underlying character does not have a Unicode representation. But, say, if I drop some alternate glyph for the character U+0041 ʟᴀᴛɪɴ ᴄᴀᴘɪᴛᴀʟ ʟᴇᴛᴛᴇʀ ᴀ in a document using the Glyphs panel, the underlying character will be U+0041, so IDrawingStyle::GetSpecialGlyph
will not work. How can I programmatically retrieve that glyph ID?
To add glyphs to the custom set, select the font containing the glyph at the bottom of the Glyphs panel, click the glyph to select it, and then choose the name of the custom glyph set from the Add To Glyph Set menu on the Glyphs panel menu.
Go to the Window menu, then to Type & Tables , and choose Glyphs to open the Glyphs Panel . To filter the glyphs shown in the panel, click the Show menu and choose Alternates for Selection . Double-click the character you want to use to replace the selected text.
To create any glyph, including one whose placeholder is not visible in the Font window or Font Map panel, select the Font > Generate Glyphs command, click on the Custom tab and type the glyph name you want to create. Then click on OK.
Choose Edit Glyph Set from the Glyph panel menu, and then choose the custom glyph set. Select the glyph you want to edit, do any of the following, and then click OK: To bind the glyph to its font, select Remember Font With Glyph.
You can get this by navigating the wax. Iterate the wax strand with CallbackWaxIterator
, and then, for each wax run boss on a wax line, obtain the IWaxGlyphs
interface and use PeekGlyphArray
or MapCharsToGlyphs
in combination with GetGlyphAt
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With