Mtasa-blue: Some symbols do nothing in dxDrawText

Created on 10 May 2019  Â·  5Comments  Â·  Source: multitheftauto/mtasa-blue

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

bug

Most helpful comment

\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.

All 5 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PlatinMTA picture PlatinMTA  Â·  3Comments

ALw7sH picture ALw7sH  Â·  3Comments

Haxardous picture Haxardous  Â·  3Comments

CrosRoad95 picture CrosRoad95  Â·  3Comments

patrikjuvonen picture patrikjuvonen  Â·  3Comments