Created attachment 1539 [details] Click on batch files and inspect the PNG to reproduce So i've had problems with font rendering in a plugin program and made a test case that can reproduce the problem stand-alone. DMD version: v2.068.0-rc1 OS version: Windows 8 The test case provide two .bat files to run it exposing or not the problem. The output is a PNG file that contains text if the bug isn't there. Unfortunately the code is still large, but I'm pretty sure the problem is somewhere in stb_truetype.d The bug only shows with both -m64 and -O. It can be work-arounded by removing -O for some modules. But still it prevents to build projects all-at-once and it's time-consuming process. If you need additional informations just ask.
Also happens with DMD v2.068.0
How I work-around this bug today: disabling -O for font.d and compiling it separately.
Why no answer? Is there a problem with this report?
(In reply to ponce from comment #3) > Why no answer? Is there a problem with this report? You generally don't get a response unless something is happening. I.e., no "thank you for your bug report" kind of messages. The test case is pretty large. It will probably have to be reduced further before work on a fix can begin. This may be something you can do to drive things forward.
Can't reproduce on Mac OS X, odd.
Removing the synchronized(this) in font.d:L118 removes the bug. It doesn't seem related to codegen afterall.
Have you had any success with DustMite?
Haven't tried.
(In reply to ponce from comment #8) > Haven't tried. Is the problem still there?
No, doesn't happen with v2.094.0 Very probably fixed since. This can be closed.