views:

128

answers:

1

I need to render fonts into a 3d game world, so I use the GetGlyphOutline outline function to get the glyph shapes to render into a texture. However, I want to be able to handle the case where characters are not present in the given font (as is often the case for asian other other international text). Windows text rendering will automatically substitute fonts which have the needed characters. But GetGlyphOutline will not. How can I detect this case, and get the outlines for the substituted glyphs? Mac OS X Core Text has a function to get a matching substitution font for a given font and a string - is there anything similar on windows?

A: 

Found out what I needed to know myself: The IMLangFontLink interface, especially the MapFont method contain the needed functionality to find out which substitution fonts should be used on windows.

jonas echterhoff
Is the IMLangFontLink interface library always installed on windows?
epotter
As far as i could tell, it gets installed by Internet Explorer 4.0 or higher. I don't know if it's safe to presume that it is on any windows system, even if IE has been removed or not.
jonas echterhoff