retopoflow icon indicating copy to clipboard operation
retopoflow copied to clipboard

UI: Text wrapping is not working correctly, very slow

Open vxlcoder opened this issue 3 years ago • 0 comments

The layout algorithm does not work well when text elements are interrupted with other elements. Also, the current implementation is awfully slow!

rewrite the layout system using better data structures.

image

notes: the layout system is called twice. first time is to compute sizes and break inlines into lines. the second time sets the position of the element (center/right alignment, table cells, etc). instead, layout_size should be called from UI_Document, then a layout_position should be called from UI_Document.

vxlcoder avatar Jun 22 '21 21:06 vxlcoder