Search code examples
ms-wordopentypefontforge

Wrong intersection behavior of opentype math font in ms word


I'm making an opentype math font (FiraMath) for LaTeX and MS Word with FontForge. When creating the \oint glyph, I use reference as the following iamge:

image

When using the generated otf fonts in LaTeX (actually is XeLaTeX), everything goes right (PDF reader is SumatraPDF):

image

But when using MS Word 2016, the intersection behavior is strange:

image

Could anyone explain what happened and show how to solve the problem?

GitHub issue link: https://github.com/Stone-Zeng/FiraMath/issues/6


Solution

  • As @be5invis points out in https://github.com/Stone-Zeng/FiraMath/issues/6,

    Only TTF and CFF2 supports non-zero filling, which allows overlapping contours.

    So my solution is simply merge the overlapping contours.