Alfredo Braunstein wrote: > Jose' Matos wrote: > >> - xforms, using ERT to see how it works with Alfredo's patch, I guess >> there is some kind of off by one error, see attached image. The last >> character is hidden by the scroll bar. Other than that I really like the
Well, it turns out that this is not a trivial bug, but something structural with the drawing scheme we'd have to sort out. The problem is the following: in a paragraph with first indented line, the avail space is something like <------- f -----> xxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx <----------- w ---------> Now suppose the first x is a text inset. The inset gets passed in the metrics step a maxwidth of w, and not f. (which may be correct, because if the inset is on the second x and is wide enough, we would expect the first x go alone in the first row, and the inset take the full second row). And this results on the inset being drawn starting in the first x but having width approx. w (and so it is too wide). I don't see a simple (not too special cased) solution to the problem. Comments and/or solutions welcomed. If you need further clarifications just ask. Alfredo