# Long-running DirectWrite bug finally fixed!

**URL:** https://forum.juce.com/t/long-running-directwrite-bug-finally-fixed/15310
**Category:** Windows
**Created:** [August 12, 2015, 4:45pm UTC](https://forum.juce.com/t/long-running-directwrite-bug-finally-fixed/15310 "2015-08-12T16:45:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)
#### Post date: [August 12, 2015, 4:45pm UTC](https://forum.juce.com/t/long-running-directwrite-bug-finally-fixed/15310/1 "2015-08-12T16:45:54Z")

</div>

You'll be glad to hear that we have FINALLY&nbsp;tracked down the intermittent DirectWrite layout bug which has come up many times, and which led to text being placed too high.. Some people had resorted to disabling DirectWrite altogether, but that should no longer be necessary.

The fix turned out to be a bit of a stupid no-brainer, but somehow eluded all of us, and we must have collectively spent days searching for the damn thing in all the wrong places.. Anyway, lots of relief here now that it's done!

---

<div class="post-metadata">

### Author: ![chkn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/chkn/32/3862_2.png) [@chkn](https://forum.juce.com/u/chkn)
#### Post date: [August 12, 2015, 9:57pm UTC](https://forum.juce.com/t/long-running-directwrite-bug-finally-fixed/15310/2 "2015-08-12T21:57:25Z")

</div>

Well done!

Its one of c++ major problems&nbsp;that it allows&nbsp;unitialized variables&nbsp; (it would be okay if you can define a variable as explicit unitialized)
