Move the creation of canvas path fonts to the worker.

Fixes #3584, #3586