On Sat Feb 3 15:35:23 2024 +0000, Esme Povirk wrote:
I think maybe the loop should also be broken in the case where `fitaux < to_measure_length`?
Should it break? I think maybe it should check for fitaux < to_measure_length and just stop increasing fit, but continue increasing the size struct, so it returns the size of the string and the amount of characters that will actually fit in max_ext. Maybe I'm misunderstanding how GetTextExPoint works when the amount of characters that will fit in max_ext is less than the string length.
Also, I've been thinking about what would happen if the text is written vertically instead of horizontally, should it account for that?