http://bugs.winehq.org/show_bug.cgi?id=26063 समीरसिंह Sameer Singh <lumarzeli30@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lumarzeli30@gmail.com --- Comment #17 from समीरसिंह Sameer Singh <lumarzeli30@gmail.com> --- I think I figured out why the game is crashing using wine's usp10. Windows caches all of the glyphs of the font in the script cache, when it has a valid HDC, so when a new call is made to the shaping function with a null hdc but the same previous script cache, the OS looks in the script cache for the glyphs. Wine does not do this, it lazily loads only the glyphs which it has encountered before in the cache. For example the pseudocode: Shape(hdc, script_cache, "One") Shape(NULL, script_cache, "Two") In Windows will result in shaping both of the texts successfully. In Wine, this will return E_PENDING, because the shaper has not cached the glyphs for "T", "w" or "o". (Only "O", "n", "e" are cached) Maybe when we have a valid hdc, we can load the cmap table from the font in init_script_cache, then when a missing glyph is encountered in ScriptShapeOpenType we can look into the table for an answer. :think: :think: Let's see if I can get some working code in a few days. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.