Closed Uriopass closed 6 months ago
The row height was never summed to itself so from the third row onwards would appear in the same height as the second row
The code is therefore simplied to always track the max_height attained by any given glyph which results in the correct behavior
max_height
Fixes https://github.com/SecondHalfGames/yakui/issues/112
Tested with
for i in 0..100 { text(100.0 - i as f32, "the fox jumped over the lazy dog"); }
in renderdoc
Before:
After:
The row height was never summed to itself so from the third row onwards would appear in the same height as the second row
The code is therefore simplied to always track the
max_height
attained by any given glyph which results in the correct behaviorFixes https://github.com/SecondHalfGames/yakui/issues/112
Tested with
in renderdoc
Before:![image](https://github.com/SecondHalfGames/yakui/assets/5420739/9fbfb12c-7ca7-45c5-8840-d91c0aebaddd)
After:![image](https://github.com/SecondHalfGames/yakui/assets/5420739/0b721e42-6f47-4733-8170-4cb204a397a0)