When calling AreaWidth or TextWidth or DocumentWidth of TCustomRVFormattedData that contains TAB characters, then the resulting value is less than the actual 'natural' width of the content. The difference seems to be width of the TABs, their width seems to be omitted.
Actually, each TAB always seems to account for 20 screen pixels, regardless if Style.DefTabWidth > 20 or Style.DefTabWidth < 20
and regardless of assigning any tabstops of any position in Style.ParaStyles[].Tabs
In other words, AreaWidth (minus margins), DocumentWidth and TextWidth ONLY give the correct natural width, when Style.DefTabWidth = 20
Style.ParaStyles[].Tabs.count = 0
Is there a workaround for this in V 1.9? Is this fixed in V 2.7?
Tabs cannot affect text/document width (except for paragraph where wrapping is turned off). If the tab exceeds the document width, it is moved to the new line.
DefTabWidth does not actually define widths of tabs, it defines tab positions.