You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Keep mathtext boxes in xywh representation throughout.
Previously, mathtext boxes would swap between xywh and x1y1x2y2
representation in the code: ship() uses xywh, calls Rule.render() which
converts to x1y1x2y2 and stores in Output.rects in that format; then
Output.to_vector() would convert back to xywh (while also swapping
downwards y's to upwards y's). Instead, stick to xywh representation
throughout (the rectangle always goes from x to x+w and y to y+h,
regardless of whether y is upwards or downwards). No actual calculation
is changed.
Also remove an incorrect comment in RendererAgg.draw_mathtext: "dy"
(i.e., y) isn't at the rect top side, but actually usually the bottom
one; in any case, again it always goes from dy to dy+h.
0 commit comments