The CanvasRenderingContext2D interface has methods: fillText and strokeText.
strokeText draws the outline of the font.
My suggestion is to add a drawStyle field to CanvasTextConfig with values fill and outline.
I'm happy to implement this and raise a pull request.