Managed DX -> DrawText?

Started by
1 comment, last by Christoph 19 years, 11 months ago
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?
Advertisement
try DrawTextFormat.NoClip instead, or give the rectangle a size, not only a position like New Rectangle(50, 50, 100, 100)
I have already tried this... doesn''t work.
But thanks

This topic is closed to new replies.

Advertisement