Closed nickdekesel closed 1 week ago
This behavior is due to the fact that Classic Win32 Desktop Outlook uses Word to render HTML instead of a Web Browser. There will be differences like this, and sometimes they get fixed, but it would probably better to find a workaround in HTML that the Word renderer is capable of rendering. This can be hard due to the fact that there really isn't a guide as to what Word renders differently than a browser, and usually it must be done with trial and error.
Note that if this was fixed, a workaround may still be necessary as older Outlook clients would always be out of date.
Provide required information needed to triage your issue
When trying to insert html into outlook via setSelectedDataAsync in the office js api, some font's are wrongly set. It does work fine in the new version of Outlook or Outlook online. In the new versions of Outlook it seems to happen only after sending/replying.
Your Environment
Expected behavior
It should keep the same fonts as specified in the HTML.
Current behavior
The font in the first row in the table that should have been Calibri as no specific font was specified, turn into Aptos.
Steps to reproduce
Use the following snippet in script lab to replicate the issue:
Context
We have a very large amount of customers managing email snippets/signatures for inserting into their emails in outlook using our product.