1
Vote

drawString skips symbols

description

Greetings,

I'm a game development student, trying to implement FontWrapper into a WIP game engine.

I'm having issues with drawString using the example code in documentation. It seems to only stream every third symbol in the string.

Here I've tried writing "123456789" as an example:

Image

It never matters where I call function.

I'd appreciate your assistance.

comments

ErikRufelt wrote Jan 14, 2015 at 2:55 PM

Hi,

Are you using wchar_t strings, usually written as L"123456789"?
If you cast a char string to wide char it could cause such problems.

/Erik

Arvidus wrote Jan 14, 2015 at 5:12 PM

Yes, I'm writing L"123456789" as the example instructs me to do. I'm not casting to wchar_t, I haven't done any change to the original code.

ErikRufelt wrote Jan 14, 2015 at 6:05 PM

I see, strange. Have you tried running the sample projects from the download page?
Also, do you use the DLL or compile the source?
If the sample projects work, try doing ClearState and reset render target before drawing the string in your project. If the samples display the same problems, try adding the FW1 source files to the project instead of using the library, could be that later D3D/Windows/driver updates have some incompatibility.

Arvidus wrote Jan 15, 2015 at 2:23 PM

Turns out the problem lied my game's render system overall. The example worked fine on a clean version of the game engine.

Either way, thank you so much for your time.