On Fri Nov 3 15:45:46 2023 +0000, Esme Povirk wrote:
If an array of runs is the cleanest way to do it in the end then I'd like to see the code refactored. If multiple callbacks is preferable then the assumption in GdipMeasureString should be changed (maybe pass in a variable indicating whether it's the first run in a line?). Revising the callback signature to pass in a struct instead of so many arguments might also be a good idea.
Thanks! I think I'm going with the array.