Can you create a mathbuildup using IDWRITE?

110 Views Asked by At

Is there already a built-in mechanism or method for creating a mathbuild using only the IDWRITE interfaces that would produce a similar type of math buildup compared to using an RTF window with the OLE/ITextRange2/ITextFont2 interfaces?

1

There are 1 best solutions below

1
Murray Sargent On

The Office riched20.dll supports window'd D2D/DWrite controls. See https://devblogs.microsoft.com/math-in-office/richeditd2d-window-controls/. The Windows 11 Notepad uses a window RichEdit control to get color emoji and other improvements available with the D2D/DWrite controls. With the msftedit.dll, you need to create a RichEdit windowless control to use D2D/DWrite. Reinventing MathBuildUp isn't easy unfortunately due to the effort to make UnicodeMath resemble a math notation. This introduces more complicated algorithms that look forward as well backward.