|
|
@ -21,11 +21,11 @@ fn Rect! Ctx.get_text_bounds(&ctx, String text, bool* update_atlas) |
|
|
|
if (n) { *update_atlas = true; } |
|
|
|
if (n) { *update_atlas = true; } |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
text_bounds.h += line_height + line_gap; |
|
|
|
text_bounds.h += line_height + line_gap; |
|
|
|
|
|
|
|
line_len = 0; |
|
|
|
|
|
|
|
} |
|
|
|
if (line_len > text_bounds.w) { |
|
|
|
if (line_len > text_bounds.w) { |
|
|
|
text_bounds.w = line_len; |
|
|
|
text_bounds.w = line_len; |
|
|
|
} |
|
|
|
} |
|
|
|
line_len = 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return text_bounds; |
|
|
|
return text_bounds; |
|
|
|