On Mon Feb 5 16:43:52 2024 +0000, Santino Mazza wrote:
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?
I think the size should include only the characters in fitaux, and if you continue increasing size it may include later characters that would hypothetically fit if you skipped drawing some.