On 12/14/20 5:53 PM, Sven Baars wrote:
Signed-off-by: Sven Baars sbaars@codeweavers.com
Some tests with zero-width control characters for inconsistent behavior that I observed while trying to fix the ID3DXFont implementation. In our implementation these functions all use the same internal function, but on Windows none of them seem to do exactly the same.
Have you tried with different fonts? Especially with fonts not shipped with Windows.
As I remember certain system fonts were updated in Windows 10 to have empty glyphs for control characters. So what you see and this whole test might be unnecessary tailored for Tahoma (including broken parts reflecting font changes across windows releases).
Easy way to test is to use some modified Noto font to see when metrics are used and when metrics are ignored for certain characters.