giomach
September 10th, 2004, 12:23 PM
I'm trying to write something to monitor the lookup of glyphs in fonts by Win32 applications, and eventually to intervene in the process (to change to another glyph, in the event that the requested glyph does not exist in the font). My reading suggests a background program using a systemwide hook might be the way.
However, I don't know what to monitor/intercept. There are API functions GetGlyphOutline, GetGlyphIndices, GetFontUnicodeRanges, etc. but I don't know if these are what applications use to pull glyphs out of fonts.
Then, I don't know if calls to such functions can be intercepted, or how to do it.
So, I will be grateful if someone can tell me:
1. does it sound feasible to monitor glyph lookup
2. am I going the right way about it, or is there a better way
3. where can I read up about the techniques I will need, or find an example
Thanks for any ideas.
However, I don't know what to monitor/intercept. There are API functions GetGlyphOutline, GetGlyphIndices, GetFontUnicodeRanges, etc. but I don't know if these are what applications use to pull glyphs out of fonts.
Then, I don't know if calls to such functions can be intercepted, or how to do it.
So, I will be grateful if someone can tell me:
1. does it sound feasible to monitor glyph lookup
2. am I going the right way about it, or is there a better way
3. where can I read up about the techniques I will need, or find an example
Thanks for any ideas.