Re: gdi32: Use graphics mode specified at the EMF creation time when playing EMR_EXTTEXTOUT record.
+ + SetGraphicsMode(hdc, old_mode); break; }
Hi, Dmitry Timoshkov! Needs to reselect font again after restore old_mode in case pExtTextOutW-> iGraphicsMode != old_mode. Otherwise, the font will remain with the wrong glyph orientation. I can write a test demonstrating the problem. Resect font is needed only if pExtTextOutW-> iGraphicsMode is GM_COMPATIBLE. This is performance optimization for GM_ADVANCED. Thank, you!
Hi, Dmitry Timoshkov!
Needs to reselect font again after restore old_mode in case pExtTextOutW-> iGraphicsMode != old_mode. Otherwise, the font will remain with the wrong glyph orientation. I can write a test demonstrating the problem.
Resect font is needed only if pExtTextOutW-> iGraphicsMode is GM_COMPATIBLE. This is performance optimization for GM_ADVANCED.
I am wrong here, sorry. You always reselect font before ExtTextOut.
participants (1)
-
Alexander Kochetkov