Mirage Engine
DirectX8 Font Outline - Printable Version

+- Mirage Engine (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: DirectX8 Font Outline (/showthread.php?tid=2026)



DirectX8 Font Outline - JokeofWeek - 21-08-2008

So I've succeeded in converting my source to DirectX 8 Big Grin Now I am trying to figure out how to outline a font. I am currently using the DrawText method included in the d3dx8 object. Any pointers? Big Grin This is my sub I use for drawing text. I know, pretty shabby, but it's what I am using for now :

Code:
Public Sub DrawText(ByVal X, ByVal Y, ByVal Text As String)
TextRect.Top = Y
TextRect.Left = X
TextRect.bottom = Y + 32
TextRect.Right = X + (Len(Text) * FONT_SIZE)
D3DX.DrawText MainFont, &HFFFFFFFF, Text, TextRect, DT_LEFT
End Sub



Re: DirectX8 Font Outline - Robin - 21-08-2008

DrawText, drawing just 8 lines of chat, in my Dx8 engine caused a drop of about 50fps.

-shudder-


Re: DirectX8 Font Outline - GIAKEN - 21-08-2008

Use the API.


Re: DirectX8 Font Outline - JokeofWeek - 22-08-2008

GIAKEN Wrote:Use the API.

The one the current MS uses? I don't think so :S Might as well stick all to DirectX 8 functions , I've heard that GDI functions don't go too good with DX functions, and the point of converting to DX 8 is for optimization and better rendering features, so that would ruin the point no?


Re: DirectX8 Font Outline - GIAKEN - 22-08-2008

No because DX is good with everything except text from what I've read.


Re: DirectX8 Font Outline - Robin - 22-08-2008

Just use textures.