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
Unless I am wrong, there seems to be nothing for basic formatting of table:
cell margins - currently text is too close to the cell borders - workaround: create thin columns and lines and hide their borders
cell justifying - currently, no options - just Top Left - no easy workaround
text wrapping and cell height adjustment - currently nothing - workaround: I have to compute it myself and adjust the height of lines
A large part of the problem could be resolved if there was an extra method for FormattedText, where you could:
Specify a bounding box and an anchor type (to justify and wrap)
Get the actual height of the formatted text (after setting the style)
Currently:
bb=Geom::Bounds2d.new1,1,wid,hgtftext=Layout::FormattedText.new(somelongtext,bb)# the text is wrapped but no way to justify it in the boxheight=ftext.bounds.height# return the SAME height as <bb> regardless of the text, not the actual height
What is requested:
bb=Geom::Bounds2d.new1,1,wid,hgtftext=Layout::FormattedText.new(somelongtext,bb,anchor_type)# the text is wrapped and justifiedreal_height=ftext.bounds.height# should return the actual height of the text
The text was updated successfully, but these errors were encountered:
Unless I am wrong, there seems to be nothing for basic formatting of table:
A large part of the problem could be resolved if there was an extra method for
FormattedText
, where you could:Currently:
What is requested:
The text was updated successfully, but these errors were encountered: