Describe the bug
This symbols \r and \t don't working with dxDrawText, only \n working.
To reproduce
addEventHandler('onClientRender', root, function()
dxDrawText('Hello\tWorld', 400, 400, 0, 0, tocolor(255,255,255,255), 2.5)
end)
Expected behaviour
Symbols like \r and \t should works
Screenshots
Version
1.5.6
Additional context
Why would you need carriage return for dx drawing?
It is not a bug. They shouldn't actually.
Generally i was meant \t symbol, \r is "optionally enhancement". I think, tabulation symbol would be useful.
\r is not relevant for drawing on screen.
\t is up for discussion — if it's supported by DirectX and we're just stripping tabs, we can look into it.
At least ID3DXFont::DrawText supports DT_EXPANDTABS flag:
DT_EXPANDTABS Expands tab characters. The default number of characters per tab is eight.
Most helpful comment
\ris not relevant for drawing on screen.\tis up for discussion — if it's supported by DirectX and we're just stripping tabs, we can look into it.