drawString "center" doesn't like newline.

Status
Not open for further replies.

Lat'

Absolute territory where
Kart Krew™️
2024 Collaborator 2015 Contest Winner
Using drawString with "center" alignment doesn't seem to take new lines into account when displaying those and instead keeps shifting the entire string to the left.

Code:
hud.add(function(v, p)
	v.drawString(160, 90, "Nice drawstring you got th \noh no help. \nit's getting worse help", V_ALLOWLOWERCASE, "center")
end)
results in
attachment.php
 

Attachments

  • srb20522.png
    srb20522.png
    97.2 KB · Views: 468
Status
Not open for further replies.

Who is viewing this thread (Total: 0, Members: 0, Guests: 0)

Back
Top