On Sat Jun 22 07:56:35 2024 +0000, Nikolay Sivov wrote:
Changing hdc is a separate issue, I think. Could be irrelevant for this particular case. There are ways to make uniscribe select different fonts automatically, and that makes caching for some font, that used to be selected at some point, not useful. I don't remember which api does that, maybe String* functions. For ScriptTextOut() we probably need to fully initialize cache in a "normal" way.
Yes, agreed, we don't need to worry about the hdc being changed in this MR. It's clear the fix is to call `init_script_cache()` from `ScriptTextOut()`.