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?
views:
128answers:
1
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
2009-12-01 17:06:50
Is the IMLangFontLink interface library always installed on windows?
epotter
2009-12-02 16:19:48
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
2009-12-02 16:37:29