Recover the Mac text-width helpers' wide-string inputs and integer results
Mac 000478ad and its wrapper 00047910 still have undefined signatures. The 99-byte width helper scans UTF-16 characters, uses a signed DWORD character limit, skips LF and sums each glyph's byte-width field into ESI; all returns move full ESI to EAX. The 36-byte wrapper passes its input to the string-length helper, then forwards that pointer and returned count to the width helper, preserving EAX to RET. Consumers compare the full result signed or add it to pixel widths. Recover WCHAR * inputs, int32_t count/result, preserving names and each cdecl ABI. Windows 005017d0/00501820 have the same loops and call chain with these types. Complete targets and representative callers inspected; #1132 is a separate Windows buffer-extent correction, not these contracts. Static evidence only. Issue #96 concerns division placement in Windows help callers.
Changes 2, applied together
Set prototype
mac 0x000478adsignatureundefined D2WINFONT_GetStringPixelWidth(undefined4 pwszString, undefined4 nSize)→int32_t D2WINFONT_GetStringPixelWidth(WCHAR * pwszString, int32_t nSize)convention__cdeclSet prototype
mac 0x00047910signatureundefined DRAW_text0(undefined4 wszText)→int32_t DRAW_text0(WCHAR * wszText)convention__cdecl