@ -2737,6 +2737,10 @@ containing newlines, or a table with the following possible fields:
Specifies a unique identifier for the token.
* ``token.minw``
Specifies minimal token width
* ``token.line``, ``token.x1``, ``token.x2``
Reserved for internal use.
@ -282,7 +282,10 @@ function render_text(obj,dc,x0,y0,pen,dpen,disabled)
end
if token.minw and x<token.minw then
dc:advance(token.minw-x)
x = math.max(x,token.minw or 0)
token.x2 = x
width = math.max(width, x)