Hi,
I'm new to 3D-programming, new to XNA and new to C# so there is a lot to learn :) Sorry if I'm asking a stupid question.
Is it possible to rotate the text output of Nuclex Fonts?
Best regards,
ztarsson
Hi,
I'm new to 3D-programming, new to XNA and new to C# so there is a lot to learn :) Sorry if I'm asking a stupid question.
Is it possible to rotate the text output of Nuclex Fonts?
Best regards,
ztarsson
Yes
You will have to use a custom effect, however.
To do this, create a new effect file (you can use the effect code stored in FontEffect.cs as a template) and have your vertex shader to do the rotation (you can make it so the effect has a parameter for the rotation angle) and assign this new effect to the BitmapFont instance before rendering.
You also might want to enable texture filtering in this special case to prevent the rotated text from looking pixelated.
Post new comment