DrawString and DrawText and DrawFont #303
Replies: 2 comments 3 replies
-
You can use DirectWrite directly in D3D11 or in D3D12 with D3D11On12. Font in SlimDX is not part of the d3d library, but instead the d3dx helper library which is not part of the core API. D3D12 does not otherwise have these helper libraries and you will have to manage it. https://github.com/Chlumsky/msdfgen is a popular way for rendering fonts from libraries, but you will have to write your own libraries to do so. It does pretty well in my program: |
Beta Was this translation helpful? Give feedback.
-
SlimDX has it ported, so it can be possible. Would probably require a contribution to the codebase https://github.com/sharpdx/SharpDX/blob/master/Source/SharpDX.Direct3D9/Mapping.xml#L2491 Possibly in a separate repo/project as it's in a helper library. I'm not sure D3D9 would be high on other's priority lists, so if it's something you'd like to tackle that'd probably be the fastest approach. |
Beta Was this translation helpful? Give feedback.
-
Is there a way to draw a text/font/string with Direct3D9, Direct3D11 or Direct3D12 in Vortice.Windows?
In SlimDX I could create a Font and call DrawString on the font object
Beta Was this translation helpful? Give feedback.
All reactions