On Fri Mar 29 20:30:26 2024 +0000, Esme Povirk wrote:
Hm, this does fix a todo_wine, but it also breaks a Mono test: https://gitlab.winehq.org/wine-mono/mono/-/blob/main/mcs/class/System.Drawin... I think that shows that the StringFormatFlagsLineLimit (which is set by GenericTypographic format) needs to always apply, not just for the first line. I did some manual testing with [this test program](/uploads/ba8e84627b1ef41c23a120fb585d6fe9/measuretext.c), and I wasn't able to identify any difference between the first line and subsequent lines, with or without the StringFormatFlagsLineLimit flag. So I'm not convinced this is the right approach.
The Mono test is still broken.
The flags on GenericTypographic format are `StringFormatFlagsNoFitBlackBox|StringFormatFlagsLineLimit|StringFormatFlagsNoClip`. Maybe the LineLimit flag takes precedence when they're set together?