Advertisement Jump to content


This topic is now archived and is closed to further replies.


Managed DX -> DrawText?

This topic is 5343 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I''m using VB.NET and simply want to render text. But for some reason, it isn''t displayed. I call the function between Device.Begin and Device.End
Private fnt As Font
fnt = New Font(d3dDev, New Drawing.Font("Arial", 12))


Public Sub DrawText(ByVal Output As String)
  fnt.DrawText(Nothing, Output, New Rectangle(50, 50, 0, 0), DrawTextFormat.Left Or DrawTextFormat.Top, Color.White)
End Sub
Can you tell me what is wrong?

Share this post

Link to post
Share on other sites
try DrawTextFormat.NoClip instead, or give the rectangle a size, not only a position like New Rectangle(50, 50, 100, 100)

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!