# Why do overlapping curves cause overlap region to disappear?

**URL:** <https://forum.high-logic.com/t/why-do-overlapping-curves-cause-overlap-region-to-disappear/5345>\
**Category:** FontCreator - Support\
**Created:** [November 30, 2016, 11:53pm UTC](https://forum.high-logic.com/t/why-do-overlapping-curves-cause-overlap-region-to-disappear/5345 "2016-11-30T23:53:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben8238723](https://forum.high-logic.com/letter_avatar_proxy/v4/letter/b/a88e57/32.png) [@ben8238723](https://forum.high-logic.com/u/ben8238723)\
**Post date:** [November 30, 2016, 11:53pm UTC](https://forum.high-logic.com/t/why-do-overlapping-curves-cause-overlap-region-to-disappear/5345/1 "2016-11-30T23:53:31Z")

</div>

I’m very confused. I have two closed curves and when one I overlap them the overlapped region disappears (is invisible). Why would this be? Presumably a related phenomena, when I try to use join on the two curves thinking this would solve the problem both curves effectively disappear, and where they were there are just a few dots in free space. Likely it’s important to note that these curves were created via the import image feature. I tried optimizing the curves to see if maybe something was weird that that might fix.

Also, presumably related, since the 10.1 update today many characters in my font which looked fine suddenly have regions of hollowness, again, as though curves are overlapping and being made invisible for some reason.

Any help? What am I not understanding and how can I fix this? Thanks.

 ![overlap.png](https://forum.high-logic.com/uploads/default/original/2X/d/d7bf19e5e04eab3942a817e2132c7552badccd0c.png)

---

<div class="post-metadata">

**Author:** ![Bhikkhu\_Pesala](https://forum.high-logic.com/user_avatar/forum.high-logic.com/bhikkhu_pesala/32/9411_2.png) [@Bhikkhu\_Pesala](https://forum.high-logic.com/u/Bhikkhu_Pesala)\
**Post date:** [December 1, 2016, 4:38am UTC](https://forum.high-logic.com/t/why-do-overlapping-curves-cause-overlap-region-to-disappear/5345/2 "2016-12-01T04:38:13Z")

</div>

Overlapping contours (intersecting contours) should be joined, or you fonts will look like this if exported with CFF Postscript outlines. Earlier versions of FontCreator did not make it obvious that this is a potential problem.

Use the Get Union of Contours command to join them. If the curves still disappear, share the image that you’re importing and someone else can try to reproduce the problem. It does still happen sometimes.

 ![Intersecting Contours.png](https://forum.high-logic.com/uploads/default/original/2X/5/53a54b881594727ee62a394329d6728dd7a68292.png)

---

<div class="post-metadata">

**Author:** ![ben8238723](https://forum.high-logic.com/letter_avatar_proxy/v4/letter/b/a88e57/32.png) [@ben8238723](https://forum.high-logic.com/u/ben8238723)\
**Post date:** [December 2, 2016, 5:38am UTC](https://forum.high-logic.com/t/why-do-overlapping-curves-cause-overlap-region-to-disappear/5345/3 "2016-12-02T05:38:09Z")

</div>

So this is weird… the problem has suddenly disappeared… And it disappeared immediately after my virus scanner deleted FCOutDrw.dll because it thought it was the Trojan-Banker.Win32.Banbra.vdfk malware/virus (I posted about that issue [in this thread](https://forum.high-logic.com/t/false-alarm-kaspersky-alarming-virus-warning/5348/1)). In that thread they mention that deleting that file may change how the font is rendered on screen…

---

<div class="post-metadata">

**Author:** ![ben8238723](https://forum.high-logic.com/letter_avatar_proxy/v4/letter/b/a88e57/32.png) [@ben8238723](https://forum.high-logic.com/u/ben8238723)\
**Post date:** [December 2, 2016, 2:44pm UTC](https://forum.high-logic.com/t/why-do-overlapping-curves-cause-overlap-region-to-disappear/5345/4 "2016-12-02T14:44:27Z")

</div>

This explains why this is now happening…

> [@Erwin Denissen](#):
>
> FCOutDrw is a new dynamic linked library (DLL) which is used to draw smooth glyph outlines. If the file is removed, FontCreator will use the old drawing method.
> 
> The new method uses the even-odd rule when it comes to determining whether an area is inside or outside while the old method uses the non-zero winding rule.  
> See: [Nonzero-rule - Wikipedia](https://en.wikipedia.org/wiki/Nonzero-rule)

Have not yet been able to properly resolve the actual overlap, but I’ll give it another shot.

---

<div class="post-metadata">

**Author:** ![ErwinDenissen](https://forum.high-logic.com/user_avatar/forum.high-logic.com/erwindenissen/32/9430_2.png) [@ErwinDenissen](https://forum.high-logic.com/u/ErwinDenissen)\
**Post date:** [December 2, 2016, 4:27pm UTC](https://forum.high-logic.com/t/why-do-overlapping-curves-cause-overlap-region-to-disappear/5345/5 "2016-12-02T16:27:22Z")

</div>

We usually don’t like duplicate posts, but in this case this post so relevant:

> [@ben8238723](#):
>
> > [@Bhikkhu Pesala](#):
> >
> > If I am not mistaken you can run FontCreator 10.1 without this DLL, but the preview of outlines will not be quite as smooth.
> > 
> > Is it your experience that FontCreator runs, or does it fail to start due to the missing DLL?
> 
> FontCreator does still run, and very oddly having the virus scanner delete FCOutDrw.dll [fixed a rendering problem I was seeing and reported here](https://forum.high-logic.com/t/why-do-overlapping-curves-cause-overlap-region-to-disappear/5345/1). So maybe the font isn’t as smooth in preview, but it actually looks right/better, it isn’t screwing up when displaying overlapped curves.

FCOutDrw is a new dynamic linked library (DLL) which is used to draw smooth glyph outlines. If the file is removed, FontCreator will use the old drawing method. To apply this workaround, do close FontCreator and then delete the file FCOutDrw.dll which can be found in Windows system folder. E.g. here:  
**C:\Windows\SysWOW64\FCOutDrw.dll**

The new method uses the even-odd rule when it comes to determining whether an area is inside or outside while the old method uses the non-zero winding rule.  
See: [Nonzero-rule - Wikipedia](https://en.wikipedia.org/wiki/Nonzero-rule)

The new method uses the graphical device interface to draw outlines, which should be faster, and is smooth. The downside at the moment is the fact we can’t change the fill mode.

 ![oldnewdraw.png](https://forum.high-logic.com/uploads/default/original/2X/9/996eb96684891e9d7ea785ac078843473136432a.png)  
The first line is drawn with the old method, the second line is the improved one.

The “F” consist of a single contour that is self-intersecting.

---

<div class="post-metadata">

**Author:** ![ErwinDenissen](https://forum.high-logic.com/user_avatar/forum.high-logic.com/erwindenissen/32/9430_2.png) [@ErwinDenissen](https://forum.high-logic.com/u/ErwinDenissen)\
**Post date:** [December 2, 2016, 4:29pm UTC](https://forum.high-logic.com/t/why-do-overlapping-curves-cause-overlap-region-to-disappear/5345/6 "2016-12-02T16:29:19Z")

</div>

> [@ben8238723](#):
>
> Have not yet been able to properly resolve the actual overlap, but I’ll give it another shot.

If the overlap is related to a composite glyph, you will need to make it simple, but you can also decide to ignore this white overlap, as the exported font won’t change.

---

<div class="post-metadata">

**Author:** ![ErwinDenissen](https://forum.high-logic.com/user_avatar/forum.high-logic.com/erwindenissen/32/9430_2.png) [@ErwinDenissen](https://forum.high-logic.com/u/ErwinDenissen)\
**Post date:** [December 5, 2016, 7:31pm UTC](https://forum.high-logic.com/t/why-do-overlapping-curves-cause-overlap-region-to-disappear/5345/7 "2016-12-05T19:31:12Z")

</div>

> [@Bhikkhu Pesala](#):
>
> Overlapping contours (intersecting contours) should be joined, or you fonts will look like this if exported with CFF Postscript outlines.

Right now overlapping contours should be avoided with fonts containing CFF based outlines, but we suspect this will no longer be an issue in the near future.

So we will try to find a solution which allows you to show overlapping contours the way they used to be.

---

<div class="post-metadata">

**Author:** ![ErwinDenissen](https://forum.high-logic.com/user_avatar/forum.high-logic.com/erwindenissen/32/9430_2.png) [@ErwinDenissen](https://forum.high-logic.com/u/ErwinDenissen)\
**Post date:** [December 6, 2016, 4:55pm UTC](https://forum.high-logic.com/t/why-do-overlapping-curves-cause-overlap-region-to-disappear/5345/8 "2016-12-06T16:55:46Z")

</div>

The update released earlier today solves the issue.

 ![improveddraw.png](https://forum.high-logic.com/uploads/default/original/2X/f/fb20d402f3dc7243c82e27bffbb2cbb6d53d21f8.png)  
You can now set the fill mode through the Options dialog:  
 ![fillmode.png](https://forum.high-logic.com/uploads/default/original/2X/7/767507e9a665af2fb74d070eb4750a463b505228.png)

---

<div class="post-metadata">

**Author:** ![ben8238723](https://forum.high-logic.com/letter_avatar_proxy/v4/letter/b/a88e57/32.png) [@ben8238723](https://forum.high-logic.com/u/ben8238723)\
**Post date:** [December 6, 2016, 4:57pm UTC](https://forum.high-logic.com/t/why-do-overlapping-curves-cause-overlap-region-to-disappear/5345/9 "2016-12-06T16:57:35Z")

</div>

Great! Thanks for the speedy fix.
