I've been trying to get the lpDx array to be properly calculated, but
unfortunately to no avail. I did find, though, that GetTextExtentExPointW is
never called with a maxExt value other than zero, and thus nfit is not
calculated.
Regarding that, would any of you know where I should look for the proper
method of calculating the maximum width (maxExt) of a formatted string? I'm
somewhat puzzled... neither lprect nor dc->BoundsRect seem to hold the
proper values for getting that value [1], or (more likely, I guess) I'm just
looking at it the wrong way.
Btw, I'd add that I've been testing this in Lotus Notes R5, just in case it
helps, and no, I haven't found a link to download a trial. [2] [3]
Cheers,
Pedro.
[1] I'm investigating the SetTextJustification, ExtTextOutW,
GetTextExtentPointW, GetTextExtentPoint32W, GetTextExtentExPointW, and
WineEngGetTextExtentExPoint functions from gdi32 (the latter in freetype.c,
the rest in font.c). I am yet to look into their *I counterparts, where
applicable.
[2]
http://appdb.winehq.org/viewbugs.php?bug_id=50
[3]
http://bugs.winehq.org/show_bug.cgi?id=7016