How to set outline color to text element with CanvasFont?

this.entity.element.font = canvasFont;
this.entity.element.text = text;

I create a text element in editor, and set the outlineThickness and outlineColor.

with this code it can show dynamically text, but the outlineThickness and outlineColor is not work then…

Looks like outlines are not supported by canvasfont due to the way that the letters are generated on a texture unfortunately.